diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-04-19 03:48:30 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-04-19 03:48:30 +0000 |
| commit | cd45dbc5f24c2f764c9c3435b7b31e74d6faac15 (patch) | |
| tree | 79b2fcb05255ccfc49630aae44b8700c3ce59f27 /clang/test/Modules/Inputs/cxx-irgen-top.h | |
| parent | af90cf528c32265ecc6888714a28ef3e97342802 (diff) | |
| download | bcm5719-llvm-cd45dbc5f24c2f764c9c3435b7b31e74d6faac15.tar.gz bcm5719-llvm-cd45dbc5f24c2f764c9c3435b7b31e74d6faac15.zip | |
When a module completes the definition of a class template specialization imported from another module, emit an update record, rather than using the broken decl rewriting mechanism. If multiple modules do this, merge the definitions together, much as we would if they were separate declarations.
llvm-svn: 206680
Diffstat (limited to 'clang/test/Modules/Inputs/cxx-irgen-top.h')
| -rw-r--r-- | clang/test/Modules/Inputs/cxx-irgen-top.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/cxx-irgen-top.h b/clang/test/Modules/Inputs/cxx-irgen-top.h index 8113e94def5..8753d8daa3d 100644 --- a/clang/test/Modules/Inputs/cxx-irgen-top.h +++ b/clang/test/Modules/Inputs/cxx-irgen-top.h @@ -8,3 +8,9 @@ extern template struct S<int>; template<typename T> T min(T a, T b) { return a < b ? a : b; } extern decltype(min(1, 2)) instantiate_min_decl; + +template<typename T> struct CtorInit { + static int f() { return 0; } + int a; + CtorInit() : a(f()) {} +}; |

