aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/imaginary.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/imaginary.c')
-rw-r--r--test/CodeGen/imaginary.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/imaginary.c b/test/CodeGen/imaginary.c
new file mode 100644
index 000000000000..2649cebb20fd
--- /dev/null
+++ b/test/CodeGen/imaginary.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -verify -emit-llvm-only %s
+
+// Just verify that we don't crash until we support _Imaginary.
+double _Imaginary foo; // expected-error {{imaginary types are not supported}}