brintos

brintos / llvm-project-archived public Read only

0
0
Text · 637 B · 7ffddfb Raw
23 lines · c
1// Test without serialization:2// RUN: %clang_cc1 -ast-dump %s | FileCheck %s3//4// Test with serialization:5// RUN: %clang_cc1 -emit-pch -o %t %s6// RUN: %clang_cc1 -x c -include-pch %t -ast-dump-all /dev/null \7// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \8// RUN: | FileCheck %s9 10void foo1(void*);11void foo2(void* const);12 13 14void bar(void) {15  // CHECK:  FunctionDecl {{.*}} <line:{{.*}}, line:{{.*}}> line:{{.*}} bar 'void (void)'16 17  foo1(0);18  // CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>19 20  foo2(0);21  // CHECK: ImplicitCastExpr {{.*}} <col:{{.*}}> 'void *' <NullToPointer>22}23