re PR c++/85662 ("error: non-constant condition for static assertion" from __builtin_...
authorJakub Jelinek <jakub@redhat.com>
Fri, 22 Jun 2018 17:22:43 +0000 (19:22 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Jun 2018 17:22:43 +0000 (19:22 +0200)
PR c++/85662
* g++.dg/ext/offsetof3.C: New test.

From-SVN: r261909

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/offsetof3.C [new file with mode: 0644]

index 5147236766d52ece18f0cf7e1ab95563e45d7b60..d86ac84d424d1a3252ae33dcf46251ad5bc7bab2 100644 (file)
@@ -1,3 +1,8 @@
+2018-06-22  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/85662
+       * g++.dg/ext/offsetof3.C: New test.
+
 2018-06-22  Carl Love  <cel@us.ibm.com>
 
        * gcc.target/powerpc/altivec-7.c: Add qualifiers for counts on AIX
diff --git a/gcc/testsuite/g++.dg/ext/offsetof3.C b/gcc/testsuite/g++.dg/ext/offsetof3.C
new file mode 100644 (file)
index 0000000..6bf4c50
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/85662
+// { dg-do compile { target c++11 } }
+// { dg-options "-O2" }
+
+#include "offsetof2.C"