summaryrefslogtreecommitdiffstats
path: root/test/PCH/objc_methods.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/objc_methods.h')
-rw-r--r--test/PCH/objc_methods.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/PCH/objc_methods.h b/test/PCH/objc_methods.h
index c9b1ad4..6dfa248 100644
--- a/test/PCH/objc_methods.h
+++ b/test/PCH/objc_methods.h
@@ -9,3 +9,33 @@
// FIXME: @compatibility_alias AliasForTestPCH TestPCH;
+// http://llvm.org/PR12689
+@interface PR12689
+@end
+
+@implementation PR12689
+-(void)mugi:(int)x {
+ switch(x) {
+ case 23: {}
+ }
+}
+-(void)bonk:(int)x {
+ switch(x) {
+ case 42: {}
+ }
+}
+@end
+
+@interface PR12689_2
+@end
+
+@implementation PR12689_2
+-(void)mugi:(int)x {
+ switch(x) {
+ case 23: [self bonk:x]; break;
+ case 82: break;
+ }
+}
+-(void)bonk:(int)x {
+}
+@end
OpenPOWER on IntegriCloud