blob: 87f15d0cf6f4eadd29252d232ac022a4e90fc484 [file] [log] [blame]
Rafael Espindolac792d6d2013-01-04 20:34:32 +00001// RUN: %clang_cc1 -ast-dump %s | FileCheck %s
2
3void foo1(void*);
4void foo2(void* const);
5
6
7void bar() {
Richard Trieue8d41192013-01-31 01:44:26 +00008 // CHECK: FunctionDecl {{.*}} <line:{{.*}}, line:{{.*}}> bar 'void ()'
Rafael Espindolac792d6d2013-01-04 20:34:32 +00009
10 foo1(0);
Richard Trieue8d41192013-01-31 01:44:26 +000011 // CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>
Rafael Espindolac792d6d2013-01-04 20:34:32 +000012
13 foo2(0);
Richard Trieue8d41192013-01-31 01:44:26 +000014 // CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>
Rafael Espindolac792d6d2013-01-04 20:34:32 +000015}