forked from OSchip/llvm-project
Merge forward-circular into protocol-test-2
llvm-svn: 68896
This commit is contained in:
parent
10644fac2f
commit
7a9c6d2973
|
@ -1,10 +0,0 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
|
||||
@protocol B;
|
||||
@protocol C < B > // expected-note{{previous definition is here}}
|
||||
@end
|
||||
@protocol A < C >
|
||||
@end
|
||||
@protocol B < A > // expected-error{{protocol has circular dependency}}
|
||||
@end
|
||||
|
|
@ -36,3 +36,14 @@
|
|||
@protocol YY <XX> // Use of declaration of XX here should not cause a warning.
|
||||
- zz;
|
||||
@end
|
||||
|
||||
|
||||
// Detect circular dependencies.
|
||||
@protocol B;
|
||||
@protocol C < B > // expected-note{{previous definition is here}}
|
||||
@end
|
||||
@protocol A < C >
|
||||
@end
|
||||
@protocol B < A > // expected-error{{protocol has circular dependency}}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in New Issue