Test handling of complex constants as lvalues.
authorDuncan Sands <baldrick@free.fr>
Wed, 22 Aug 2007 05:58:22 +0000 (05:58 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 22 Aug 2007 05:58:22 +0000 (05:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41266 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-08-21-ComplexCst.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-08-21-ComplexCst.c b/test/CFrontend/2007-08-21-ComplexCst.c
new file mode 100644 (file)
index 0000000..7ddd87c
--- /dev/null
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc -O2 -c %s -o /dev/null
+void f(_Complex float z);
+void g() { f(1.0i); }