blob: 58a980d5288c746685667f4a569443dc0dd182d7 [file] [log] [blame]
Anders Carlsson7f9e6462009-09-15 04:48:33 +00001// RUN: clang-cc -emit-llvm -o - %s -std=c++0x
2void *f1(unsigned long l) {
3 return reinterpret_cast<void *>(l);
4}
5
6unsigned long f2() {
7 return reinterpret_cast<unsigned long>(nullptr);
8}
9
10unsigned long f3(void *p) {
11 return reinterpret_cast<unsigned long>(p);
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000012}
Anders Carlsson658e8122009-11-14 21:21:42 +000013
14void f4(int*&);
15void f5(void*& u) {
16 f4(reinterpret_cast<int*&>(u));
17}