we dont have an lvalue test, oops
authorMatthias Braun <matze@braunis.de>
Fri, 30 May 2008 14:11:31 +0000 (14:11 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 30 May 2008 14:11:31 +0000 (14:11 +0000)
[r19847]

parsetest/shouldfail/cpponly.c [new file with mode: 0644]
parsetest/shouldfail/lvalue.c [new file with mode: 0644]

diff --git a/parsetest/shouldfail/cpponly.c b/parsetest/shouldfail/cpponly.c
new file mode 100644 (file)
index 0000000..aa97ddb
--- /dev/null
@@ -0,0 +1,8 @@
+int a;
+int b;
+
+int main(int argc, char **argv) {
+       (void) argv;
+       argc ? a = b : b = a;
+       return 0;
+}
diff --git a/parsetest/shouldfail/lvalue.c b/parsetest/shouldfail/lvalue.c
new file mode 100644 (file)
index 0000000..6e7f54d
--- /dev/null
@@ -0,0 +1,6 @@
+int a, b;
+
+int main(void) {
+       a + b = 20;
+       return 0;
+}