[llvm-commits] [test-suite] r162923 - in /test-suite/trunk/SingleSource/UnitTests/ObjC: BoolLiteralTest.m BoolLiteralTest.reference_output
Fariborz Jahanian
fjahanian at apple.com
Thu Aug 30 11:50:34 PDT 2012
Author: fjahanian
Date: Thu Aug 30 13:50:34 2012
New Revision: 162923
URL: http://llvm.org/viewvc/llvm-project?rev=162923&view=rev
Log:
Test for // rdar://12156616
Added:
test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.m
test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.reference_output
Added: test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.m
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.m?rev=162923&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.m (added)
+++ test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.m Thu Aug 30 13:50:34 2012
@@ -0,0 +1,15 @@
+#import <Foundation/Foundation.h>
+
+int main(int argc, char *argv[])
+{
+#ifdef __clang__
+ @autoreleasepool {
+ if (CFGetTypeID((id)@(__objc_yes)) == CFBooleanGetTypeID()) {
+ ;
+ } else {
+ abort();
+ }
+ }
+#endif
+ return EXIT_SUCCESS;
+}
Added: test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.reference_output?rev=162923&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.reference_output (added)
+++ test-suite/trunk/SingleSource/UnitTests/ObjC/BoolLiteralTest.reference_output Thu Aug 30 13:50:34 2012
@@ -0,0 +1 @@
+exit 0
More information about the llvm-commits
mailing list