2011-10-14 06:29:44 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -o - %s -std=c++11
|
2012-09-12 18:45:40 +08:00
|
|
|
// REQUIRES: LP64
|
|
|
|
|
2009-09-15 12:48:33 +08:00
|
|
|
void *f1(unsigned long l) {
|
|
|
|
return reinterpret_cast<void *>(l);
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned long f2() {
|
|
|
|
return reinterpret_cast<unsigned long>(nullptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned long f3(void *p) {
|
|
|
|
return reinterpret_cast<unsigned long>(p);
|
2009-11-08 09:45:36 +08:00
|
|
|
}
|
2009-11-15 05:21:42 +08:00
|
|
|
|
|
|
|
void f4(int*&);
|
|
|
|
void f5(void*& u) {
|
|
|
|
f4(reinterpret_cast<int*&>(u));
|
2009-12-16 04:14:24 +08:00
|
|
|
}
|