summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/diagnostic/pr61004.C
blob: 3bf66bed7a46bd9e32f642ca7a47434fff048044 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile }
// { dg-options "-O2 -Wall" }

struct A{ };
struct B:A{};
void f(A const&);
int main()
{
  B b;
  f(b); // { dg-bogus "strict-aliasing" }
}