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