mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 04:20:26 +08:00
c++: Add new test [PR79493]
A nice side effect of r12-1822 was improving the diagnostic we emit for the following test. PR c++/79493 gcc/testsuite/ChangeLog: * g++.dg/diagnostic/undeclared1.C: New test.
This commit is contained in:
parent
9675ecf7f9
commit
cdcea7c1ef
7
gcc/testsuite/g++.dg/diagnostic/undeclared1.C
Normal file
7
gcc/testsuite/g++.dg/diagnostic/undeclared1.C
Normal file
@ -0,0 +1,7 @@
|
||||
// PR c++/79493
|
||||
|
||||
namespace A { }
|
||||
struct B {
|
||||
void f(A::nonexistent param); // { dg-error ".A::nonexistent. has not been declared" }
|
||||
void* g(A::nonexistent param); // { dg-error ".A::nonexistent. has not been declared" }
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user