summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/imaginary.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/imaginary.c')
-rw-r--r--clang/test/CodeGen/imaginary.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/imaginary.c b/clang/test/CodeGen/imaginary.c
new file mode 100644
index 0000000..2649ceb
--- /dev/null
+++ b/clang/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}}