summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/new1.C
blob: ec201cbc20d01c05d119eb7000c06d14fca1dfb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-require-visibility "" }
// { dg-options "-fvisibility=hidden" }
// { dg-final { scan-not-hidden "_Znwj" } }

void f() {
  new int;
}

void *g();

void *operator new(__SIZE_TYPE__) {
  return g();
}