diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-06-17 23:19:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-06-17 23:19:38 +0000 |
commit | 95a76f3715e2497facbf6e68da7477a46e92134f (patch) | |
tree | ef64cdcd30ced70fa40fc8630447f7c1dbf30917 /clang/test | |
parent | 00758b08ae0754b80b279edf65e168ad88e53ced (diff) | |
download | bcm5719-llvm-95a76f3715e2497facbf6e68da7477a46e92134f.tar.gz bcm5719-llvm-95a76f3715e2497facbf6e68da7477a46e92134f.zip |
Fix regression with @encode string. rdar://9624314.
llvm-svn: 133312
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGenObjCXX/encode.mm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjCXX/encode.mm b/clang/test/CodeGenObjCXX/encode.mm index dce3d70665d..2c10fbcb975 100644 --- a/clang/test/CodeGenObjCXX/encode.mm +++ b/clang/test/CodeGenObjCXX/encode.mm @@ -91,6 +91,20 @@ namespace rdar9357400 { const char gg[] = @encode(vector4f); } +// rdar://9624314 +namespace rdar9624314 { + struct B2 { int x; }; + struct B3 {}; + struct S : B2, B3 {}; + + // CHECK: @_ZN11rdar9624314L2ggE = internal constant [6 x i8] c"{S=i}\00" + const char gg[] = @encode(S); + + struct S2 { unsigned : 0; int x; unsigned : 0; }; + // CHECK: @_ZN11rdar9624314L2g2E = internal constant [11 x i8] c"{S2=b0ib0}\00" + const char g2[] = @encode(S2); +} + struct Base1 { char x; }; |