diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/Modules/decldef.m | |
parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) | |
download | src-bfef399519ca9b8a4b4c6b563253bad7e0eeffe0.tar.gz src-bfef399519ca9b8a4b4c6b563253bad7e0eeffe0.zip |
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):vendor/clang/clang-release_34-r197841
Notes
Notes:
svn path=/vendor/clang/dist/; revision=259701
svn path=/vendor/clang/clang-release_34-r197841/; revision=259703; tag=vendor/clang/clang-release_34-r197841
Diffstat (limited to 'test/Modules/decldef.m')
-rw-r--r-- | test/Modules/decldef.m | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/Modules/decldef.m b/test/Modules/decldef.m index 7ed82b57e9c6..efd2d7c42c83 100644 --- a/test/Modules/decldef.m +++ b/test/Modules/decldef.m @@ -1,13 +1,16 @@ // RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fobjc-arc -I %S/Inputs -fmodules-cache-path=%t %s -verify -DUSE_EARLY // RUN: %clang_cc1 -fmodules -fobjc-arc -I %S/Inputs -fmodules-cache-path=%t %s -verify -// expected-note@Inputs/def.h:5 {{previous definition is here}} +// expected-note@Inputs/def.h:5 {{previous}} @class Def; Def *def; @import decldef; -A *a1; // expected-error{{unknown type name 'A'}} +#ifdef USE_EARLY +A *a1; // expected-error{{declaration of 'A' must be imported from module 'decldef.Def' before it is required}} +#endif B *b1; // expected-error{{must use 'struct' tag to refer to type 'B'}} @import decldef.Decl; @@ -15,7 +18,10 @@ A *a2; struct B *b; void testA(A *a) { - a->ivar = 17; // expected-error{{definition of 'A' must be imported from module 'decldef.Def' before it is required}} + a->ivar = 17; +#ifndef USE_EARLY + // expected-error@-2{{definition of 'A' must be imported from module 'decldef.Def' before it is required}} +#endif } void testB() { |