diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-01-22 03:50:31 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-01-22 03:50:31 +0000 |
commit | 03b1425999b71d0ecacc94d7a5cc696a77a49bb8 (patch) | |
tree | c2bf3a8d2faecf860fbaef1cad32e8cd33c014ef /test/Modules/merge-implicit-special-members.cpp | |
parent | 7d4b5625309b7cc9547a2c26dac72a4cbf1edc12 (diff) |
[modules] If we add an implicit special member to a class through an update
record, and that class declaration is not the canonical definition of the
class, be sure to add the class to the list of classes that are consulted when
we look up a special member in the canonical definition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/merge-implicit-special-members.cpp')
-rw-r--r-- | test/Modules/merge-implicit-special-members.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Modules/merge-implicit-special-members.cpp b/test/Modules/merge-implicit-special-members.cpp new file mode 100644 index 0000000000..a8b917cb01 --- /dev/null +++ b/test/Modules/merge-implicit-special-members.cpp @@ -0,0 +1,5 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/merge-implicit-special-members -verify %s +// expected-no-diagnostics +#include "c.h" +int n = pthread_mutex_t().lock; |