aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Shead <nathanieloshead@gmail.com>2025-02-11 22:24:55 +1100
committerNathaniel Shead <nathanieloshead@gmail.com>2025-02-11 22:26:52 +1100
commit1bfab1dc79bef1f1120bda37556f2e372a2378f5 (patch)
tree1565a4dcb95d36b025cceb517dbbd0e6323202e7
parentef83fae50d8f085fe8440bfa595875a2e2329871 (diff)
downloadgcc-1bfab1dc79bef1f1120bda37556f2e372a2378f5.zip
gcc-1bfab1dc79bef1f1120bda37556f2e372a2378f5.tar.gz
gcc-1bfab1dc79bef1f1120bda37556f2e372a2378f5.tar.bz2
testsuite: Fix g++.dg/modules/adl-5
This testcase wasn't running, because adl-5_a had the wrong extension. adl-5_d should have been reporting an error because 'frob' is only visible from within the 'hidden' module but this was missed. gcc/testsuite/ChangeLog: * g++.dg/modules/adl-5_a.c: Move to... * g++.dg/modules/adl-5_a.C: ...here. * g++.dg/modules/adl-5_d.C: Add errors. Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
-rw-r--r--gcc/testsuite/g++.dg/modules/adl-5_a.C (renamed from gcc/testsuite/g++.dg/modules/adl-5_a.c)0
-rw-r--r--gcc/testsuite/g++.dg/modules/adl-5_d.C5
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/modules/adl-5_a.c b/gcc/testsuite/g++.dg/modules/adl-5_a.C
index 5b86922..5b86922 100644
--- a/gcc/testsuite/g++.dg/modules/adl-5_a.c
+++ b/gcc/testsuite/g++.dg/modules/adl-5_a.C
diff --git a/gcc/testsuite/g++.dg/modules/adl-5_d.C b/gcc/testsuite/g++.dg/modules/adl-5_d.C
index 9c75b6d..cf93b04 100644
--- a/gcc/testsuite/g++.dg/modules/adl-5_d.C
+++ b/gcc/testsuite/g++.dg/modules/adl-5_d.C
@@ -7,10 +7,11 @@ int main ()
{
X x (2);
- if (frob (x) != 2)
+ if (frob (x) != 2) // { dg-error "not declared in" }
return 1;
- if (TPL (x) != 2)
+ // { dg-regexp "\n\[^\n]*adl-5_a.C:8:15: error: 'frob' was not declared in this scope$" }
+ if (TPL (x) != 2) // { dg-message "required from here" }
return 2;
return 0;