xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/implicit-cast-dump.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -ast-dump %s | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc void foo1(void*);
4f4a2713aSLionel Sambuc void foo2(void* const);
5f4a2713aSLionel Sambuc 
6f4a2713aSLionel Sambuc 
bar()7f4a2713aSLionel Sambuc void bar() {
8*0a6a1f1dSLionel Sambuc   // CHECK:  FunctionDecl {{.*}} <line:{{.*}}, line:{{.*}}> line:{{.*}} bar 'void ()'
9f4a2713aSLionel Sambuc 
10f4a2713aSLionel Sambuc   foo1(0);
11f4a2713aSLionel Sambuc   // CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>
12f4a2713aSLionel Sambuc 
13f4a2713aSLionel Sambuc   foo2(0);
14f4a2713aSLionel Sambuc   // CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>
15f4a2713aSLionel Sambuc }
16