aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/conv2.C
blob: baf2a43b2ae66348ee7d8842c825f6922642ee53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile { target c++11 } }
// { dg-additional-options "-fpermissive" }

struct A {
  A(int*, int);
};

void f(A);

int main() {
  const int n = 0;
  f({&n, 42}); // { dg-warning "invalid conversion from 'const int\\*' to 'int\\*'" }
}