summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/reinterpret-cast.cpp
blob: ae3ab2f8b0d7340b5d6e4161ddff864f09eeab1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-cc -emit-llvm -o - %s -std=c++0x
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);
}