re PR c++/79781 (ICE on valid C++ code with -std=c++14 (in assemble_integer, at varas...
authorMarek Polacek <polacek@redhat.com>
Thu, 20 Jun 2019 22:35:34 +0000 (22:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 20 Jun 2019 22:35:34 +0000 (22:35 +0000)
PR c++/79781
* g++.dg/ext/goto1.C: New test.

From-SVN: r272527

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

index 440284de43fe2d0db84b4ebaaeb5a7661b49137b..5697e18024a8971138ff2073a04cbd54d954798c 100644 (file)
@@ -1,3 +1,8 @@
+2019-06-20  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/79781
+       * g++.dg/ext/goto1.C: New test.
+
 2019-06-20  Steven G. Kargl  <kargl@gcc.gnu.org>
 
        PR fortran/77632
diff --git a/gcc/testsuite/g++.dg/ext/goto1.C b/gcc/testsuite/g++.dg/ext/goto1.C
new file mode 100644 (file)
index 0000000..84bbfce
--- /dev/null
@@ -0,0 +1,9 @@
+// PR c++/79781
+// { dg-do compile { target int128 } }
+// { dg-options "" }
+
+void c() {
+  static __int128_t d = (long)&&a - (long)&&b;
+a:
+b:;
+}