summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/cxx-irgen-top.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/Inputs/cxx-irgen-top.h')
-rw-r--r--clang/test/Modules/Inputs/cxx-irgen-top.h6
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()) {}
+};
OpenPOWER on IntegriCloud