]> granicus.if.org Git - clang/commitdiff
Add test coverage for @encode(SEL); completely untested until now.
authorNico Weber <nicolasweber@gmx.de>
Tue, 15 Sep 2015 20:05:20 +0000 (20:05 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 15 Sep 2015 20:05:20 +0000 (20:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247717 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/encode-test.m

index 0002c0f6e4603b652541f8c3bc2f25d61a5a8f80..710e65be62da677ce59892ad0e215b8793e1e6b1 100644 (file)
@@ -177,3 +177,6 @@ const char g13[] = @encode(__typeof__(*test_class));
 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);