commit | 50b5a30db40322880340e957ad7d6d8d60bb4c5b | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Wed Oct 31 23:18:02 2007 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Wed Oct 31 23:18:02 2007 +0000 |
tree | df2cfb24a995d618ed8092391b5e14a9f5444c61 | |
parent | 0bd41f2cea0639395e8ab7ef8fd6df2c1999b6ae [diff] [blame] |
Fix a typo that prevented pointer-to-int conversions from working. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43588 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/pointer-to-int.c b/test/CodeGen/pointer-to-int.c new file mode 100644 index 0000000..7599e0d --- /dev/null +++ b/test/CodeGen/pointer-to-int.c
@@ -0,0 +1,6 @@ +// RUN: clang -emit-llvm %s + +int test(void* i) +{ + return (int)i; +}