summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/implicit-cast-dump.c
blob: 4cd855fb1d46d71bc89d925dfafc9840488f2dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -ast-dump %s | FileCheck %s

void foo1(void*);
void foo2(void* const);


void bar() {
  // CHECK:  FunctionDecl {{.*}} <line:{{.*}}, line:{{.*}}> line:{{.*}} bar 'void ()'

  foo1(0);
  // CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>

  foo2(0);
  // CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>
}
OpenPOWER on IntegriCloud