You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
360 B
20 lines
360 B
// RUN: %clang_cc1 -emit-llvm -o - %s -std=c++11
|
|
// REQUIRES: LP64
|
|
|
|
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);
|
|
}
|
|
|
|
void f4(int*&);
|
|
void f5(void*& u) {
|
|
f4(reinterpret_cast<int*&>(u));
|
|
}
|