blob: ff5679248c25402fe520b8ef9f69b43c0ec9c55f [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -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);
12}
13
14void f4(int*&);
15void f5(void*& u) {
16 f4(reinterpret_cast<int*&>(u));
17}