aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-08-22 05:58:22 +0000
committerDuncan Sands <baldrick@free.fr>2007-08-22 05:58:22 +0000
commit35a5cfeeb9f3a4f2cd5e16e51591bf7a7089b104 (patch)
treee3176afb691545df71f3931cf806928a6251aa4c /test/CFrontend
parentb08c6db11511275eee96c48534c351e4e02b850b (diff)
downloadexternal_llvm-35a5cfeeb9f3a4f2cd5e16e51591bf7a7089b104.zip
external_llvm-35a5cfeeb9f3a4f2cd5e16e51591bf7a7089b104.tar.gz
external_llvm-35a5cfeeb9f3a4f2cd5e16e51591bf7a7089b104.tar.bz2
Test handling of complex constants as lvalues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2007-08-21-ComplexCst.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CFrontend/2007-08-21-ComplexCst.c b/test/CFrontend/2007-08-21-ComplexCst.c
new file mode 100644
index 0000000..7ddd87c
--- /dev/null
+++ b/test/CFrontend/2007-08-21-ComplexCst.c
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc -O2 -c %s -o /dev/null
+void f(_Complex float z);
+void g() { f(1.0i); }