[cfe-commits] r156746 - /cfe/trunk/test/CodeGenObjC/objc-literal-debugger-test.m

Jordy Rose jediknil at belkadan.com
Sun May 13 13:36:48 PDT 2012


Author: jrose
Date: Sun May 13 15:36:47 2012
New Revision: 156746

URL: http://llvm.org/viewvc/llvm-project?rev=156746&view=rev
Log:
Test for -fdebugger-objc-literal: missing methods should be generated like missing classes.

Modified:
    cfe/trunk/test/CodeGenObjC/objc-literal-debugger-test.m

Modified: cfe/trunk/test/CodeGenObjC/objc-literal-debugger-test.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc-literal-debugger-test.m?rev=156746&r1=156745&r2=156746&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc-literal-debugger-test.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc-literal-debugger-test.m Sun May 13 15:36:47 2012
@@ -1,4 +1,25 @@
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fdebugger-objc-literal -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fdebugger-objc-literal -emit-llvm -o - %s -DINCLUDE_INTERFACES=1 | FileCheck %s
+
+// We need two different RUN lines here because the first time a class/method is absent,
+// it will be added for -fdebugger-objc-literal.
+
+#ifdef INCLUDE_INTERFACES
+ at interface NSObject
+ at end
+
+ at interface NSNumber : NSObject
+ at end
+
+ at interface NSArray : NSObject
+ at end
+
+ at interface NSDictionary : NSObject
+ at end
+
+ at interface NSString : NSObject
+ at end
+#endif
 
 int main() {
   // object literals.





More information about the cfe-commits mailing list