aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendObjC
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-08-26 05:01:18 +0000
committerDevang Patel <dpatel@apple.com>2009-08-26 05:01:18 +0000
commit824598883513789516a919651f4b35e7a638ec5c (patch)
tree5a87b0b92a0c718d5f87d80b51cc4a6b9251eb63 /test/FrontendObjC
parentbe1f788676ff6a71bc0324ac38af7626fdcf92b2 (diff)
Revert 79977. It causes llvm-gcc bootstrap failures on some platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendObjC')
-rw-r--r--test/FrontendObjC/2009-02-17-RunTimeVer-dbg.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/FrontendObjC/2009-02-17-RunTimeVer-dbg.m b/test/FrontendObjC/2009-02-17-RunTimeVer-dbg.m
new file mode 100644
index 0000000000..0fab94d9f8
--- /dev/null
+++ b/test/FrontendObjC/2009-02-17-RunTimeVer-dbg.m
@@ -0,0 +1,13 @@
+// RUN: %llvmgcc -x objective-c -S %s -g --emit-llvm -o - | grep "dbg.compile_unit =" | grep "null, i32"
+// Last parameter represent i32 runtime version id. The previous paramenter
+// encodes command line flags when certain env. variables are set. In this
+// example it is the only compile_unit parameter that is null. This test case
+// tests existence of new additional compile_unit parameter to encode
+// Objective-C runtime version number.
+
+@interface foo
+@end
+@implementation foo
+@end
+
+void fn(foo *f) {}