diff options
author | Anders Carlsson <andersca@mac.com> | 2007-10-31 23:18:02 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2007-10-31 23:18:02 +0000 |
commit | e89b84ab29aeb7599fb98a698cbf4923679ef31e (patch) | |
tree | 0247b437296c2679f164cdb3c0795952564560ea /clang/test/CodeGen/pointer-to-int.c | |
parent | f5fcb9870a938317334557edf28ee3c25a95592a (diff) | |
download | llvm-e89b84ab29aeb7599fb98a698cbf4923679ef31e.zip llvm-e89b84ab29aeb7599fb98a698cbf4923679ef31e.tar.gz llvm-e89b84ab29aeb7599fb98a698cbf4923679ef31e.tar.bz2 |
Fix a typo that prevented pointer-to-int conversions from working.
llvm-svn: 43588
Diffstat (limited to 'clang/test/CodeGen/pointer-to-int.c')
-rw-r--r-- | clang/test/CodeGen/pointer-to-int.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/pointer-to-int.c b/clang/test/CodeGen/pointer-to-int.c new file mode 100644 index 0000000..7599e0d --- /dev/null +++ b/clang/test/CodeGen/pointer-to-int.c @@ -0,0 +1,6 @@ +// RUN: clang -emit-llvm %s + +int test(void* i) +{ + return (int)i; +} |