summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/builtins.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/builtins.cpp')
-rw-r--r--clang/test/SemaCXX/builtins.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/builtins.cpp b/clang/test/SemaCXX/builtins.cpp
index 63aa711d62d..69bdfa61451 100644
--- a/clang/test/SemaCXX/builtins.cpp
+++ b/clang/test/SemaCXX/builtins.cpp
@@ -38,3 +38,9 @@ namespace addressof {
S *ptmp = __builtin_addressof(S{}); // expected-error {{taking the address of a temporary}}
}
+
+void no_ms_builtins() {
+ __assume(1); // expected-error {{use of undeclared}}
+ __noop(1); // expected-error {{use of undeclared}}
+ __debugbreak(); // expected-error {{use of undeclared}}
+}
OpenPOWER on IntegriCloud