summaryrefslogtreecommitdiffstats
path: root/llvm/test/LLVMC/false.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-06 18:11:21 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-06 18:11:21 +0000
commit7f417b08cf87b240b19c9845c20fac688ac00fd7 (patch)
tree452bd5aec8c0f0e6615896ceeae5a29d0c5df4e9 /llvm/test/LLVMC/false.cpp
parent8bcc1bd3d51cd3df2e75a06eb9851ef3b31b844a (diff)
downloadbcm5719-llvm-7f417b08cf87b240b19c9845c20fac688ac00fd7.tar.gz
bcm5719-llvm-7f417b08cf87b240b19c9845c20fac688ac00fd7.zip
Add two (currently failing) tests.
llvm-svn: 50752
Diffstat (limited to 'llvm/test/LLVMC/false.cpp')
-rw-r--r--llvm/test/LLVMC/false.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/LLVMC/false.cpp b/llvm/test/LLVMC/false.cpp
new file mode 100644
index 00000000000..d3a7102f8cc
--- /dev/null
+++ b/llvm/test/LLVMC/false.cpp
@@ -0,0 +1,17 @@
+/* RUN: ignore */
+#include <stdio.h>
+
+/* Make this invalid C++ */
+typedef struct {
+ int i;
+ char c;
+} a;
+
+static a b = { .i = 65, .c = 'r'};
+
+void test() {
+ b.i = 9;
+ fflush(stdout);
+ printf("el");
+}
+
OpenPOWER on IntegriCloud