summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/warn7.C
blob: 3fb78895acb10a6fbf32ec8f60c28b2e2a9b55f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// { dg-options "-Wall" }

const int& foo() {
  extern int bar;
  
  return bar;
}

const int* baz() {
  extern int bar;
  
  return &bar;
}