2013-01-05 04:34:32 +08:00
|
|
|
// RUN: %clang_cc1 -ast-dump %s | FileCheck %s
|
|
|
|
|
|
|
|
void foo1(void*);
|
|
|
|
void foo2(void* const);
|
|
|
|
|
|
|
|
|
|
|
|
void bar() {
|
2014-04-02 13:48:29 +08:00
|
|
|
// CHECK: FunctionDecl {{.*}} <line:{{.*}}, line:{{.*}}> line:{{.*}} bar 'void ()'
|
2013-01-05 04:34:32 +08:00
|
|
|
|
|
|
|
foo1(0);
|
2013-01-31 09:44:26 +08:00
|
|
|
// CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>
|
2013-01-05 04:34:32 +08:00
|
|
|
|
|
|
|
foo2(0);
|
2013-01-31 09:44:26 +08:00
|
|
|
// CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>
|
2013-01-05 04:34:32 +08:00
|
|
|
}
|