aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/paren-list-agg-init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/paren-list-agg-init.cpp')
-rw-r--r--clang/test/SemaCXX/paren-list-agg-init.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/paren-list-agg-init.cpp b/clang/test/SemaCXX/paren-list-agg-init.cpp
index 7bdf49b8fd0c..042ce3b3ddce 100644
--- a/clang/test/SemaCXX/paren-list-agg-init.cpp
+++ b/clang/test/SemaCXX/paren-list-agg-init.cpp
@@ -266,3 +266,9 @@ O o2(0, 0); // no-error
O o3(0);
// expected-error@-1 {{reference member of type 'int &&' uninitialized}}
}
+
+namespace gh63008 {
+auto a = new A('a', {1.1});
+// expected-warning@-1 {{braces around scalar init}}
+// beforecxx20-warning@-2 {{aggregate initialization of type 'A' from a parenthesized list of values is a C++20 extension}}
+}