From dcb7cc59aec5d5bc8e210afedb0cba458e56bae9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Dec 2007 06:06:23 +0000 Subject: Fix an nice and subtle parser bug reported by Nico Weber. llvm-svn: 45149 --- clang/test/Sema/conditional.c | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 clang/test/Sema/conditional.c (limited to 'clang/test/Sema/conditional.c') diff --git a/clang/test/Sema/conditional.c b/clang/test/Sema/conditional.c new file mode 100644 index 00000000000..3af0fe57b43 --- /dev/null +++ b/clang/test/Sema/conditional.c @@ -0,0 +1,4 @@ +// RUN: clang %s -fsyntax-only + +const char* test1 = 1 ? "i" : 1 == 1 ? "v" : "r"; + -- cgit v1.2.3