[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / AST / pragma-multiple-attributes.cpp
blobb717b3a15864583c8e405030f52e622f09a76ecc
1 // RUN: %clang_cc1 -fsyntax-only -ast-dump %s | FileCheck %s
3 #pragma clang attribute push (__attribute__((disable_sanitizer_instrumentation, annotate("test1"))), apply_to=variable(is_global))
4 int var1;
5 #pragma clang attribute pop
6 // CHECK: VarDecl {{.*}} var1
7 // CHECK-NEXT: DisableSanitizerInstrumentationAttr {{.*}}
8 // CHECK-NEXT: AnnotateAttr {{.*}} "test1"
10 #pragma clang attribute push ([[clang::disable_sanitizer_instrumentation, clang::annotate("test2")]], apply_to=variable(is_global))
11 int var2;
12 #pragma clang attribute pop
13 // CHECK: VarDecl {{.*}} var2
14 // CHECK-NEXT: DisableSanitizerInstrumentationAttr {{.*}}
15 // CHECK-NEXT: AnnotateAttr {{.*}} "test2"