David Chisnall | 404bbcb | 2018-05-22 10:13:06 +0000 | [diff] [blame] | 1 | // RUN: %clang -S -emit-llvm %s -o - -x objective-c -fobjc-runtime=gnustep-1.5 | FileCheck %s |
2 | |||||
3 | // Regression test: check that we don't crash when referencing a forward-declared protocol. | ||||
4 | @protocol P; | ||||
5 | |||||
Alex Lorenz | b111da1 | 2018-08-17 22:18:08 +0000 | [diff] [blame] | 6 | @interface I <P> |
7 | @end | ||||
8 | |||||
9 | @implementation I | ||||
10 | |||||
11 | @end | ||||
David Chisnall | 404bbcb | 2018-05-22 10:13:06 +0000 | [diff] [blame] | 12 | |
13 | // CHECK: @.objc_protocol |