xref: /llvm-project/clang/test/AST/ast-print-no-sanitize.cpp (revision 9391ff8c86007562d40c240ea082b7c0cbf35947)
1 // RUN: %clang_cc1 -std=c++11 -ast-print %s -o - | FileCheck %s
2 
3 void should_not_crash_1() __attribute__((no_sanitize_memory));
4 [[clang::no_sanitize_memory]] void should_not_crash_2();
5 
6 // CHECK: void should_not_crash_1() __attribute__((no_sanitize("memory")));
7 // CHECK: {{\[\[}}clang::no_sanitize("memory"){{\]\]}} void should_not_crash_2();
8