]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] Fix trapping access in test PR101750
authorTamar Christina <tamar.christina@arm.com>
Wed, 4 Aug 2021 13:36:15 +0000 (14:36 +0100)
committerTamar Christina <tamar.christina@arm.com>
Wed, 4 Aug 2021 13:36:26 +0000 (14:36 +0100)
I believe PR101750 to be a testism. Fix it by giving the class a name.

gcc/testsuite/ChangeLog:

PR tree-optimization/101750
* g++.dg/vect/pr99149.cc: Name class.

gcc/testsuite/g++.dg/vect/pr99149.cc

index 00ebe9d9cdf600ada8e66b4b854f0e18ad0b6a7d..9d584262770c75f53bea9c193d3a44aa792f4d36 100755 (executable)
@@ -11,7 +11,7 @@ public:
   a operator*(a d) { return a(b * b - c * c, b * c + c * d.b); }
 };
 int f, g;
-class {
+class mp {
   a *h;
   a *i;