aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2003-08-21-BinOp-Type-Mismatch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CFrontend/2003-08-21-BinOp-Type-Mismatch.c b/test/CFrontend/2003-08-21-BinOp-Type-Mismatch.c
new file mode 100644
index 0000000000..0e431c7a66
--- /dev/null
+++ b/test/CFrontend/2003-08-21-BinOp-Type-Mismatch.c
@@ -0,0 +1,8 @@
+struct bar;
+
+void foo()
+{
+ unsigned int frame, focus;
+ (struct bar *) focus == (focus ? ((struct bar *) frame) : 0);
+}
+