2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Mar 2015 10:24:33 +0000 (10:24 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Mar 2015 10:24:33 +0000 (10:24 +0000)
PR c++/65513
* g++.dg/cpp0x/constexpr-array11.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221620 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-array11.C [new file with mode: 0644]

index 6e8f5b1..55f6ed6 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/65513
+       * g++.dg/cpp0x/constexpr-array11.C: New.
+
 2015-03-24  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/65517
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-array11.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-array11.C
new file mode 100644 (file)
index 0000000..5ecda4d
--- /dev/null
@@ -0,0 +1,13 @@
+// PR c++/65513
+// { dg-do compile { target c++11 } }
+
+template <typename _Tp> struct atomic {
+  atomic() = default;
+  atomic(_Tp);
+};
+
+struct {
+  atomic<bool> bReadyToFlush;
+}
+
+LogThreadsleLogEntries[10]{};