AIX sections use the csect directive to name a section. Check for
csect name in attr-section testcases.
gcc/testsuite/ChangeLog:
* g++.dg/ext/attr-section1.C: Test for csect section directive.
* g++.dg/ext/attr-section1a.C: Same.
* g++.dg/ext/attr-section2.C: Same.
* g++.dg/ext/attr-section2a.C: Same.
* g++.dg/ext/attr-section2b.C: Same.
Signed-off-by: David Edelsohn <dje.gcc@gmail.com>
template void fun<int>();
-// { dg-final { scan-assembler {.section[ \t]+.foo} } }
+// { dg-final { scan-assembler {.(section|csect)[ \t]+.+foo} } }
template struct A<int>;
-// { dg-final { scan-assembler {.section[ \t]+.foo} } }
+// { dg-final { scan-assembler {.(section|csect)[ \t]+.+foo} } }
template int var<int>;
-// { dg-final { scan-assembler {.section[ \t]+.foo} } }
+// { dg-final { scan-assembler {.(section|csect)[ \t]+.foo} } }
template struct A<int>;
-// { dg-final { scan-assembler {.section[ \t]+.foo} } }
+// { dg-final { scan-assembler {.(section|csect)[ \t]+.foo} } }
template int* fun<int>();
-// { dg-final { scan-assembler {.section[ \t]+.foo} } }
+// { dg-final { scan-assembler {.(section|csect)[ \t]+.foo} } }