blob: 25be9b994828779d1edbd54c64de9765e24dfc47 [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}