Fix g++.dg/abi/lambda-static-1.C with Solaris as
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 26 Mar 2019 18:29:16 +0000 (18:29 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 26 Mar 2019 18:29:16 +0000 (18:29 +0000)
* g++.dg/abi/lambda-static-1.C: Handle Solaris as comdat group
syntax.

From-SVN: r269952

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/lambda-static-1.C

index 39fb94476a922f1e89dd4fd7b81f1bef117549b1..16bfddf5acc704c099051bc46c1348c8bea18ff7 100644 (file)
@@ -1,3 +1,8 @@
+2019-03-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * g++.dg/abi/lambda-static-1.C: Handle Solaris as comdat group
+       syntax.
+
 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
 
        PR tree-optimization/81740
index 3d23ddc4007ba61d03cd92103a5f6026cf97fbf5..6299733fe2115b357392f9fe2707c0eb12a168d6 100644 (file)
@@ -21,5 +21,7 @@ void indirect ()
 // The call operator and the static invoker should be comdat, but not
 // the same group.  (that would be a compiler incompatibility)
 
-// { dg-final { scan-assembler ".section\[\t ]*.text._ZZ5lambyvENKUlvE_clEv,\[^\n\r]*,_ZZ5lambyvENKUlvE_clEv,comdat" } }
-// { dg-final { scan-assembler ".section\[\t ]*.text._ZZ5lambyvENUlvE_4_FUNEv,\[^\n\r]*,_ZZ5lambyvENUlvE_4_FUNEv,comdat" } }
+// { dg-final { scan-assembler ".section\[\t ]*.text._ZZ5lambyvENKUlvE_clEv,\[^\n\r]*,_ZZ5lambyvENKUlvE_clEv,comdat" { target { { ! *-*-solaris2.* } || { gas } } } } }
+// { dg-final { scan-assembler ".section\[\t ]*.text._ZZ5lambyvENUlvE_4_FUNEv,\[^\n\r]*,_ZZ5lambyvENUlvE_4_FUNEv,comdat" { target { { ! *-*-solaris2.* } || { gas } } } } }
+// { dg-final { scan-assembler ".group\[\t \]*_ZZ5lambyvENKUlvE_clEv,\[^\n\r\]*,#comdat" { target { *-*-solaris2.* && { ! gas } } } } }
+// { dg-final { scan-assembler ".group\[\t \]*_ZZ5lambyvENUlvE_4_FUNEv,\[^\n\r\]*,#comdat" { target { *-*-solaris2.* && { ! gas } } } } }