Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -std=c++11 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
      2 struct X {
      3   int f() &;
      4   int g() &&;
      5   int h() const &&;
      6 };
      7 
      8 // CHECK: define i32 @_ZNR1X1fEv
      9 int X::f() & { return 0; }
     10 // CHECK: define i32 @_ZNO1X1gEv
     11 int X::g() && { return 0; }
     12 // CHECK: define i32 @_ZNKO1X1hEv
     13 int X::h() const && { return 0; }
     14 
     15 // CHECK: define void @_Z1fM1XRFivEMS_OFivEMS_KOFivE
     16 void f(int (X::*)() &, int (X::*)() &&, int (X::*)() const&&) { }
     17