Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm -o - %s -std=c++11
      2 // REQUIRES: LP64
      3 
      4 void *f1(unsigned long l) {
      5   return reinterpret_cast<void *>(l);
      6 }
      7 
      8 unsigned long f2() {
      9   return reinterpret_cast<unsigned long>(nullptr);
     10 }
     11 
     12 unsigned long f3(void *p) {
     13   return reinterpret_cast<unsigned long>(p);
     14 }
     15 
     16 void f4(int*&);
     17 void f5(void*& u) {
     18   f4(reinterpret_cast<int*&>(u));
     19 }
     20