diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-11-30 18:38:50 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-11-30 18:38:50 +0000 |
commit | af8f02634b879fac795e8d88961ebe3dd3b02b19 (patch) | |
tree | 80e3fb4b01f40615b94f3d596ad64960e3483f7c /clang/test/Modules/cycles.c | |
parent | a820e7feffdb4ed21eead966fc283d5737d43846 (diff) | |
download | bcm5719-llvm-af8f02634b879fac795e8d88961ebe3dd3b02b19.tar.gz bcm5719-llvm-af8f02634b879fac795e8d88961ebe3dd3b02b19.zip |
When an error occurs while building a module on demand, provide "While
building module 'Foo' imported from..." notes (the same we we provide
"In file included from..." notes) in the diagnostic, so that we know
how this module got included in the first place. This is part of
<rdar://problem/12696425>.
llvm-svn: 169021
Diffstat (limited to 'clang/test/Modules/cycles.c')
-rw-r--r-- | clang/test/Modules/cycles.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/Modules/cycles.c b/clang/test/Modules/cycles.c index 256f118cc02..5fcb41ec1f6 100644 --- a/clang/test/Modules/cycles.c +++ b/clang/test/Modules/cycles.c @@ -3,10 +3,11 @@ // FIXME: When we have a syntax for modules in C, use that. @__experimental_modules_import MutuallyRecursive1; -// FIXME: Lots of redundant diagnostics here, because the preprocessor -// can't currently tell the parser not to try to load the module again. - +// CHECK: While building module 'MutuallyRecursive1' imported from +// CHECK: While building module 'MutuallyRecursive2' imported from // CHECK: MutuallyRecursive2.h:3:32: fatal error: cyclic dependency in module 'MutuallyRecursive1': MutuallyRecursive1 -> MutuallyRecursive2 -> MutuallyRecursive1 +// CHECK: While building module 'MutuallyRecursive1' imported from // CHECK: MutuallyRecursive1.h:2:32: fatal error: could not build module 'MutuallyRecursive2' // CHECK: cycles.c:4:32: fatal error: could not build module 'MutuallyRecursive1' +// CHECK-NOT: error: |