aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-12-19 17:45:06 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-12-19 17:45:06 +0000
commite4bb68a475e1fcc1e47dff866b0b565db8254f85 (patch)
treed888ae0457becf27f3789b323d73b8cda16f0a24
parent45920e82bd87454545642ee2612e656a4140889d (diff)
Test case for my last @encode patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61247 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGenObjC/encode-test.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGenObjC/encode-test.m b/test/CodeGenObjC/encode-test.m
new file mode 100644
index 0000000000..f5b6b92071
--- /dev/null
+++ b/test/CodeGenObjC/encode-test.m
@@ -0,0 +1,17 @@
+// RUN: clang -fnext-runtime -emit-llvm -o %t %s &&
+// RUN: grep -e "\^{Innermost=CC}" %t | count 1
+
+@class Int1;
+
+struct Innermost {
+ unsigned char a, b;
+};
+
+@interface Int1 {
+ signed char a, b;
+ struct Innermost *innermost;
+}
+@end
+
+@implementation Int1
+@end