aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-21 18:25:37 +0000
committerChris Lattner <sabre@nondot.org>2003-08-21 18:25:37 +0000
commitbcf86d8ddbb9a85810e3d3354cd828025dfd4156 (patch)
treeeb54b79baa419b45ce70be67892460e9866e01a1 /test
parent76bbaa53ca516ebfc3db22f78480fe77da720d97 (diff)
downloadexternal_llvm-bcf86d8ddbb9a85810e3d3354cd828025dfd4156.zip
external_llvm-bcf86d8ddbb9a85810e3d3354cd828025dfd4156.tar.gz
external_llvm-bcf86d8ddbb9a85810e3d3354cd828025dfd4156.tar.bz2
Yet another testcase distilled from emacs by Misha!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CFrontend/2003-08-21-StmtExpr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CFrontend/2003-08-21-StmtExpr.c b/test/CFrontend/2003-08-21-StmtExpr.c
new file mode 100644
index 0000000..a5eefe7
--- /dev/null
+++ b/test/CFrontend/2003-08-21-StmtExpr.c
@@ -0,0 +1,10 @@
+
+typedef struct {
+ unsigned long val;
+} structty;
+
+void bar(structty new_mask);
+static void foo() {
+ bar(({ structty mask; mask; }));
+}
+