summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/decldef.mm
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/decldef.mm')
-rw-r--r--clang/test/Modules/decldef.mm13
1 files changed, 3 insertions, 10 deletions
diff --git a/clang/test/Modules/decldef.mm b/clang/test/Modules/decldef.mm
index c99fdea0d84..e164aa7e080 100644
--- a/clang/test/Modules/decldef.mm
+++ b/clang/test/Modules/decldef.mm
@@ -2,13 +2,7 @@
// RUN: %clang_cc1 -fmodules -I %S/Inputs -fmodule-cache-path %t %s -verify
-// in other file: expected-note{{previous definition is here}}
-
-
-
-
-
-// in other file: expected-note{{previous definition is here}}
+// In other file: expected-note {{previous definition is here}}
@import decldef;
A *a1; // expected-error{{unknown type name 'A'}}
@@ -19,10 +13,9 @@ A *a2;
B *b;
void testA(A *a) {
- a->ivar = 17; // expected-error{{definition of 'A' must be imported before it is required}}
+ a->ivar = 17; // expected-error{{definition of 'A' must be imported from module 'decldef.Def' before it is required}}
}
void testB() {
- B b; // expected-error{{definition of 'B' must be imported before it is required}}
- B b2; // Note: the reundant error was silenced.
+ B b; // Note: redundant error silenced
}
OpenPOWER on IntegriCloud