[cfe-commits] r39609 - /cfe/cfe/trunk/test/Sema/i-c-e1.c
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:46:12 PDT 2007
Author: clattner
Date: Wed Jul 11 11:46:12 2007
New Revision: 39609
URL: http://llvm.org/viewvc/llvm-project?rev=39609&view=rev
Log:
new testcase
Added:
cfe/cfe/trunk/test/Sema/i-c-e1.c (with props)
Added: cfe/cfe/trunk/test/Sema/i-c-e1.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Sema/i-c-e1.c?rev=39609&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Sema/i-c-e1.c (added)
+++ cfe/cfe/trunk/test/Sema/i-c-e1.c Wed Jul 11 11:46:12 2007
@@ -0,0 +1,5 @@
+// RUN: clang %s -fsyntax-only
+
+void test1(int n, int* p) { *(n ? p : (void *)(7-7)) = 1; }
+void test2(int n, int* p) { *(n ? p : (void *)0) = 1; }
+
Propchange: cfe/cfe/trunk/test/Sema/i-c-e1.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Sema/i-c-e1.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
More information about the cfe-commits
mailing list