summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/attr-no-sanitize.cpp
diff options
context:
space:
mode:
authorDouglas Katzman <dougk@google.com>2016-10-14 19:55:09 +0000
committerDouglas Katzman <dougk@google.com>2016-10-14 19:55:09 +0000
commit3ed0f643fc3267b7fbb319e4cb5610e5a7e1ba86 (patch)
treec78c3e1d4ce390185d4059c55d78750d01cc1365 /clang/test/SemaCXX/attr-no-sanitize.cpp
parentf80a27e3c6190a9aaec4454696cd4c162e3164e6 (diff)
downloadbcm5719-llvm-3ed0f643fc3267b7fbb319e4cb5610e5a7e1ba86.tar.gz
bcm5719-llvm-3ed0f643fc3267b7fbb319e4cb5610e5a7e1ba86.zip
Implement no_sanitize_address for global vars
llvm-svn: 284272
Diffstat (limited to 'clang/test/SemaCXX/attr-no-sanitize.cpp')
-rw-r--r--clang/test/SemaCXX/attr-no-sanitize.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/attr-no-sanitize.cpp b/clang/test/SemaCXX/attr-no-sanitize.cpp
index 741f7606282..965def6f025 100644
--- a/clang/test/SemaCXX/attr-no-sanitize.cpp
+++ b/clang/test/SemaCXX/attr-no-sanitize.cpp
@@ -2,8 +2,6 @@
// RUN: not %clang_cc1 -std=c++11 -ast-dump %s | FileCheck --check-prefix=DUMP %s
// RUN: not %clang_cc1 -std=c++11 -ast-print %s | FileCheck --check-prefix=PRINT %s
-int v1 __attribute__((no_sanitize("address"))); // expected-error{{'no_sanitize' attribute only applies to functions and methods}}
-
int f1() __attribute__((no_sanitize)); // expected-error{{'no_sanitize' attribute takes at least 1 argument}}
int f2() __attribute__((no_sanitize(1))); // expected-error{{'no_sanitize' attribute requires a string}}
OpenPOWER on IntegriCloud