]> granicus.if.org Git - clang/commitdiff
Improve codegen coverage tests.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 5 Oct 2008 00:31:54 +0000 (00:31 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 5 Oct 2008 00:31:54 +0000 (00:31 +0000)
 - Hit debug info generation.
 - Hit both ObjC runtimes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57088 91177308-0d34-0410-b5e6-96231b3b80d8

test/Coverage/codegen-gnu.m [new file with mode: 0644]
test/Coverage/codegen-next.m [new file with mode: 0644]
test/Coverage/codegen.c
test/Coverage/codegen.m [deleted file]
test/Coverage/objc-language-features.inc

diff --git a/test/Coverage/codegen-gnu.m b/test/Coverage/codegen-gnu.m
new file mode 100644 (file)
index 0000000..63cd468
--- /dev/null
@@ -0,0 +1,5 @@
+// RUN: clang -fgnu-runtime -emit-llvm -o %t %s &&
+// RUN: clang -g -fgnu-runtime -emit-llvm -o %t %s
+// XFAIL
+
+#include "objc-language-features.inc"
diff --git a/test/Coverage/codegen-next.m b/test/Coverage/codegen-next.m
new file mode 100644 (file)
index 0000000..74df555
--- /dev/null
@@ -0,0 +1,5 @@
+// RUN: clang -fnext-runtime -emit-llvm -o %t %s &&
+// RUN: clang -g -fnext-runtime -emit-llvm -o %t %s
+// XFAIL
+
+#include "objc-language-features.inc"
index eb2873c78378bf1b70b835bf083ab344931845c0..8c9ce02d7cf48015879a98a14a7a01440a1b43ed 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: clang -emit-llvm -o %t %s
-// RUN: clang -emit-llvm-bc -o %t %s
+// RUN: clang -emit-llvm -o %t %s &&
+// RUN: clang -emit-llvm-bc -o %t %s &&
+// RUN: clang -g -emit-llvm-bc -o %t %s
 
 #include "c-language-features.inc"
diff --git a/test/Coverage/codegen.m b/test/Coverage/codegen.m
deleted file mode 100644 (file)
index 9bfdb68..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// RUN: clang -fnext-runtime -emit-llvm -o %t %s
-// RUN: clang -fnext-runtime -emit-llvm-bc -o %t %s
-// XFAIL
-
-#include "objc-language-features.inc"
index d341032b82fad76563bc49de418da219617c123a..87177cf243cdd7e3478015d5c832bb2d5cea7002 100644 (file)
 @implementation C : A
 @end
 
-#if 0
 @interface A (Cat)
 @end
 
 @implementation A (Cat)
 @end
-#endif
 
 int f0(id x) {
   @synchronized(x) {