summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/compatibility-alias.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/compatibility-alias.m')
-rw-r--r--clang/test/CodeGenObjC/compatibility-alias.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/compatibility-alias.m b/clang/test/CodeGenObjC/compatibility-alias.m
new file mode 100644
index 0000000..fcc53b8
--- /dev/null
+++ b/clang/test/CodeGenObjC/compatibility-alias.m
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -emit-llvm -o %t %s
+
+@interface Int1 @end
+
+typedef Int1 Int1Typedef;
+@compatibility_alias Int1Alias Int1Typedef;
+
+@implementation Int1Alias @end