summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/references.cpp
blob: 26d7157e1cb167927751369435bc2d77a1f0f4ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: clang-cc -verify -emit-llvm -o %t %s

void t1() {
  extern int& a;
  int b = a; 
}

void t2(int& a) {
  int b = a;
}

int g;
int& gr = g;
void t3() {
  int b = gr;
}
OpenPOWER on IntegriCloud