mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 06:48:51 -04:00

expression is a forward declaration as this results in undefined behavior. rdar://17768630 llvm-svn: 213968
17 lines
223 B
Objective-C
17 lines
223 B
Objective-C
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
@protocol fproto @end
|
|
|
|
@protocol p1
|
|
@end
|
|
|
|
@class cl;
|
|
|
|
int main()
|
|
{
|
|
Protocol *proto = @protocol(p1);
|
|
Protocol *fproto = @protocol(fproto);
|
|
}
|
|
|