diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-03-10 02:00:53 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-03-10 02:00:53 +0000 |
commit | 3a71bb8341973a3d2478a92c0b3d42931631f0f5 (patch) | |
tree | 1de151cc0c777d476b931029b1c55d2f9f27a7fa /test/Modules/pr21687.cpp | |
parent | fd6e857ed0f5ab95e16b98b9696880dd39f1e3bb (diff) |
PR21687: when adding a redeclaration of a function with an implicit exception
specification, update all prior declarations if the new one has an explicit
exception specification and the prior ones don't.
Patch by Vassil Vassilev! Some minor tweaking and test case by me.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/pr21687.cpp')
-rw-r--r-- | test/Modules/pr21687.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Modules/pr21687.cpp b/test/Modules/pr21687.cpp new file mode 100644 index 0000000000..ad67489541 --- /dev/null +++ b/test/Modules/pr21687.cpp @@ -0,0 +1,3 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/PR21687 -emit-llvm-only %s +#include "c.h" |