aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0000000000..a5eefe70b2
--- /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; }));
+}
+