aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/cxx-value-init.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-08-23 19:35:47 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-08-23 19:35:47 +0000
commit7267f7832e5f0c7f951765e201c5a2650eb1637b (patch)
tree8c72e71b1901b375c93a2eade87b55204eb190b8 /test/CodeGen/cxx-value-init.cpp
parent2fba1217dc4c81064a8bf53e422d0924f141cd4b (diff)
Add CodeGen support for CXXZeroInitValueExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/cxx-value-init.cpp')
-rw-r--r--test/CodeGen/cxx-value-init.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/cxx-value-init.cpp b/test/CodeGen/cxx-value-init.cpp
new file mode 100644
index 0000000000..b1cddd913f
--- /dev/null
+++ b/test/CodeGen/cxx-value-init.cpp
@@ -0,0 +1,11 @@
+// RUN: clang -emit-llvm %s -o %t
+
+enum E {};
+int v1 = E();
+float v2 = float();
+
+void f() {
+ int v3 = int();
+ _Complex int v4 = typeof(_Complex int)();
+ _Complex float v5 = typeof(_Complex float)();
+}