forked from OSchip/llvm-project
parent
612cb6ef2b
commit
556f03ef90
|
@ -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" }
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue