mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:14:49 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user