From: Nico Weber Date: Tue, 15 Sep 2015 20:05:20 +0000 (+0000) Subject: Add test coverage for @encode(SEL); completely untested until now. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d952c80ec3c8517010770ba9a29bcfb7405e85a9;p=clang Add test coverage for @encode(SEL); completely untested until now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247717 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenObjC/encode-test.m b/test/CodeGenObjC/encode-test.m index 0002c0f6e4..710e65be62 100644 --- a/test/CodeGenObjC/encode-test.m +++ b/test/CodeGenObjC/encode-test.m @@ -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);