Fix module name collision in tests.

llvm-svn: 195545
This commit is contained in:
Richard Smith 2013-11-23 05:21:32 +00:00
parent 612cb6ef2b
commit 556f03ef90
2 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
module a {
module malformed_a {
module a1 { header "a1.h" }
module a2 { header "a2.h" }
}
module b {
module malformed_b {
module b1 { header "b1.h" }
module b2 { header "b2.h" }
}

View File

@ -6,18 +6,18 @@
#define STR(x) STR2(x)
#include STR(HEADER)
// CHECK-A: While building module 'a'
// CHECK-A: While building module 'malformed_a'
// CHECK-A: a1.h:1:{{.*}} error: expected '}'
// CHECK-A: a1.h:1:{{.*}} note: to match this '{'
//
// CHECK-A: While building module 'a'
// CHECK-A: While building module 'malformed_a'
// CHECK-A: a2.h:1:{{.*}} error: extraneous closing brace
// CHECK-B: While building module 'b'
// CHECK-B: While building module 'malformed_b'
// CHECK-B: b1.h:2:{{.*}} error: expected '}'
// CHECK-B: b1.h:1:{{.*}} note: to match this '{'
// CHECK-B: b1.h:3:{{.*}} error: extraneous closing brace ('}')
//
// CHECK-B: While building module 'b'
// CHECK-B: While building module 'malformed_b'
// CHECK-B: b2.h:1:{{.*}} error: redefinition of 'g'
// CHECK-B: b2.h:1:{{.*}} note: previous definition is here