Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s
      2 
      3 // PR5290
      4 int const f0();
      5 void f0_test() {
      6   decltype(0, f0()) i = 0;
      7   i = 0;
      8 }
      9 
     10 struct A { int a[1]; A() { } };
     11 typedef A const AC;
     12 int &f1(int*);
     13 float &f2(int const*);
     14 
     15 void test_f2() {
     16   float &fr = f2(AC().a);
     17 }
     18 
     19 namespace pr10154 {
     20   class A{
     21       A(decltype(nullptr) param);
     22   };
     23 }