1 // RUN: %clang_cc1 -ast-dump %s | FileCheck %s
3 #pragma clang attribute push (__attribute__((disable_sanitizer_instrumentation, annotate("test1"))), apply_to=variable(is_global))
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))
12 #pragma clang attribute pop
13 // CHECK: VarDecl {{.*}} var2
14 // CHECK-NEXT: DisableSanitizerInstrumentationAttr {{.*}}
15 // CHECK-NEXT: AnnotateAttr {{.*}} "test2"