summaryrefslogtreecommitdiff
path: root/test/CFrontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-21 17:56:32 +0000
committerChris Lattner <sabre@nondot.org>2003-08-21 17:56:32 +0000
commit76bbaa53ca516ebfc3db22f78480fe77da720d97 (patch)
treede9242177abb117933eea7e0b96b4ba2c6a2202d /test/CFrontend
parenta83de0bf7713bee02980235c570cbc664940b424 (diff)
downloadllvm-76bbaa53ca516ebfc3db22f78480fe77da720d97.tar.gz
llvm-76bbaa53ca516ebfc3db22f78480fe77da720d97.tar.bz2
llvm-76bbaa53ca516ebfc3db22f78480fe77da720d97.tar.xz
New testcase, distilled from emacs by Misha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-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);
+}
+