[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Sema / attr-nomerge-ast.cpp
blob410fda5a4e09648d05cba442b29893e2363a10da
1 // RUN: %clang_cc1 -ast-dump %s 2>&1 | FileCheck %s
3 [[clang::nomerge]] void func();
4 [[clang::nomerge]] void func();
5 void func();
6 [[clang::nomerge]] void func() {}
7 [[clang::nomerge]] void (*var)(void);
9 // CHECK: FunctionDecl {{.*}} func 'void ()'
10 // CHECK-NEXT: NoMergeAttr
11 // CHECK-NEXT: FunctionDecl {{.*}} func 'void ()'
12 // CHECK-NEXT: NoMergeAttr
13 // CHECK-NEXT: FunctionDecl {{.*}} func 'void ()'
14 // CHECK-NEXT: NoMergeAttr {{.*}} Inherited
15 // CHECK-NEXT: FunctionDecl {{.*}} func 'void ()'
16 // CHECK-NEXT: CompoundStmt
17 // CHECK-NEXT: NoMergeAttr
19 // CHECK-NEXT: VarDecl {{.*}} var 'void (*)()'
20 // CHECK-NEXT: NoMergeAttr