aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/exceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Frontend/exceptions.c')
-rw-r--r--test/Frontend/exceptions.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Frontend/exceptions.c b/test/Frontend/exceptions.c
new file mode 100644
index 000000000000..4bbaaa39bfa6
--- /dev/null
+++ b/test/Frontend/exceptions.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fms-compatibility -fexceptions -fcxx-exceptions -verify %s
+// expected-no-diagnostics
+
+#if defined(__EXCEPTIONS)
+#error __EXCEPTIONS should not be defined.
+#endif