summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/decltype.cpp
blob: d4ef7e33a1d1a3280462b8f4c04a37e799b3fad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s

// PR5290
int const f0();
void f0_test() {
  decltype(0, f0()) i = 0;
  i = 0;
}

struct A { int a[1]; A() { } };
typedef A const AC;
int &f1(int*);
float &f2(int const*);

void test_f2() {
  float &fr = f2(AC().a);
}

OpenPOWER on IntegriCloud