summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/implicit-member-functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/implicit-member-functions.cpp')
-rw-r--r--test/SemaCXX/implicit-member-functions.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaCXX/implicit-member-functions.cpp b/test/SemaCXX/implicit-member-functions.cpp
index 79cc367..5333094 100644
--- a/test/SemaCXX/implicit-member-functions.cpp
+++ b/test/SemaCXX/implicit-member-functions.cpp
@@ -39,3 +39,14 @@ namespace PR6570 {
};
}
+
+namespace PR7594 {
+ // If the lazy declaration of special member functions is triggered
+ // in an out-of-line initializer, make sure the functions aren't in
+ // the initializer scope. This used to crash Clang:
+ struct C {
+ C();
+ static C *c;
+ };
+ C *C::c = new C();
+}
OpenPOWER on IntegriCloud