[cfe-commits] r60936 - in /cfe/trunk/test/Sema: i-c-e.c i-c-e1.c i-c-e2.c i-c-e3.c

Chris Lattner sabre at nondot.org
Thu Dec 11 23:01:25 PST 2008


Author: lattner
Date: Fri Dec 12 01:01:24 2008
New Revision: 60936

URL: http://llvm.org/viewvc/llvm-project?rev=60936&view=rev
Log:
merge these testcases into one file.

Added:
    cfe/trunk/test/Sema/i-c-e.c
Removed:
    cfe/trunk/test/Sema/i-c-e1.c
    cfe/trunk/test/Sema/i-c-e2.c
    cfe/trunk/test/Sema/i-c-e3.c

Added: cfe/trunk/test/Sema/i-c-e.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/i-c-e.c?rev=60936&view=auto

==============================================================================
--- cfe/trunk/test/Sema/i-c-e.c (added)
+++ cfe/trunk/test/Sema/i-c-e.c Fri Dec 12 01:01:24 2008
@@ -0,0 +1,35 @@
+// RUN: clang %s -fsyntax-only -verify -pedantic -fpascal-strings
+
+int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;}
+
+// rdar://6091492 - ?: with __builtin_constant_p as the operand is an i-c-e.
+int expr;
+char w[__builtin_constant_p(expr) ? expr : 1];
+
+
+
+void test1(int n, int* p) { *(n ? p : (void *)(7-7)) = 1; }
+void test2(int n, int* p) { *(n ? p : (void *)0) = 1; }
+
+
+
+char array[1024/(sizeof (long))];
+
+int x['\xBb' == (char) 187 ? 1: -1];
+
+// PR1992
+void func(int x)
+{
+  switch (x) {
+    case sizeof("abc"): break;
+    case sizeof("loooong"): func(4);
+    case sizeof("\ploooong"): func(4);
+  }
+}
+
+
+// rdar://4213768
+int expr;
+char y[__builtin_constant_p(expr) ? -1 : 1];
+char z[__builtin_constant_p(4) ? 1 : -1];
+

Removed: cfe/trunk/test/Sema/i-c-e1.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/i-c-e1.c?rev=60935&view=auto

==============================================================================
--- cfe/trunk/test/Sema/i-c-e1.c (original)
+++ cfe/trunk/test/Sema/i-c-e1.c (removed)
@@ -1,5 +0,0 @@
-// 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; }
-

Removed: cfe/trunk/test/Sema/i-c-e2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/i-c-e2.c?rev=60935&view=auto

==============================================================================
--- cfe/trunk/test/Sema/i-c-e2.c (original)
+++ cfe/trunk/test/Sema/i-c-e2.c (removed)
@@ -1,22 +0,0 @@
-// RUN: clang %s -fsyntax-only -fpascal-strings
-
-char array[1024/(sizeof (long))];
-
-int x['\xBb' == (char) 187 ? 1: -1];
-
-// PR1992
-void func(int x)
-{
- switch (x) {
- case sizeof("abc"): break;
- case sizeof("loooong"): func(4);
- case sizeof("\ploooong"): func(4);
- }
-}
-
-
-// rdar://4213768
-int expr;
-char y[__builtin_constant_p(expr) ? -1 : 1];
-char z[__builtin_constant_p(4) ? 1 : -1];
-

Removed: cfe/trunk/test/Sema/i-c-e3.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/i-c-e3.c?rev=60935&view=auto

==============================================================================
--- cfe/trunk/test/Sema/i-c-e3.c (original)
+++ cfe/trunk/test/Sema/i-c-e3.c (removed)
@@ -1,8 +0,0 @@
-// RUN: clang %s -fsyntax-only -verify -pedantic
-
-int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;}
-
-// rdar://6091492 - ?: with __builtin_constant_p as the operand is an i-c-e.
-int expr;
-char w[__builtin_constant_p(expr) ? expr : 1];
-





More information about the cfe-commits mailing list