diff options
Diffstat (limited to 'clang/test/Modules/update-exception-spec.cpp')
-rw-r--r-- | clang/test/Modules/update-exception-spec.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/update-exception-spec.cpp b/clang/test/Modules/update-exception-spec.cpp new file mode 100644 index 00000000000..bccdddc9c09 --- /dev/null +++ b/clang/test/Modules/update-exception-spec.cpp @@ -0,0 +1,6 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fexceptions -fcxx-exceptions -fmodules -fmodules-cache-path=%t -I%S/Inputs/update-exception-spec -emit-llvm-only %s +#include "a.h" +void use(B *p); +#include "c.h" +void use(B *p) { g(p); } |