Author: nico Date: Tue Sep 15 15:05:20 2015 New Revision: 247717 URL: http://llvm.org/viewvc/llvm-project?rev=247717&view=rev Log: Add test coverage for @encode(SEL); completely untested until now.
Modified: cfe/trunk/test/CodeGenObjC/encode-test.m Modified: cfe/trunk/test/CodeGenObjC/encode-test.m URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/encode-test.m?rev=247717&r1=247716&r2=247717&view=diff ============================================================================== --- cfe/trunk/test/CodeGenObjC/encode-test.m (original) +++ cfe/trunk/test/CodeGenObjC/encode-test.m Tue Sep 15 15:05:20 2015 @@ -177,3 +177,6 @@ const char g13[] = @encode(__typeof__(*t const char g14[] = @encode(__typeof__(*test_id)); // CHECK: constant [14 x i8] c"{objc_class=}\00" // CHECK: constant [15 x i8] c"{objc_object=}\00" + +// CHECK: @g15 = constant [2 x i8] c":\00" +const char g15[] = @encode(SEL); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits