summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/special/load-category-1.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc.dg/special/load-category-1.h')
-rw-r--r--gcc/testsuite/objc.dg/special/load-category-1.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/special/load-category-1.h b/gcc/testsuite/objc.dg/special/load-category-1.h
new file mode 100644
index 000000000..7810487df
--- /dev/null
+++ b/gcc/testsuite/objc.dg/special/load-category-1.h
@@ -0,0 +1,20 @@
+/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
+
+/* Test that +load works when a category is defined in a different
+ module than the main class. */
+
+/* This function should be called any time +load is invoked, so we can
+ keep the count. */
+extern int increase_load_count (void);
+
+@interface TestClass1
+{
+ id isa;
+}
+@end
+
+@interface TestClass2
+{
+ id isa;
+}
+@end