]> granicus.if.org Git - clang/commitdiff
Test case for my last @encode patch.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 19 Dec 2008 17:45:06 +0000 (17:45 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 19 Dec 2008 17:45:06 +0000 (17:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61247 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/encode-test.m [new file with mode: 0644]

diff --git a/test/CodeGenObjC/encode-test.m b/test/CodeGenObjC/encode-test.m
new file mode 100644 (file)
index 0000000..f5b6b92
--- /dev/null
@@ -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