commit | f194113f17e66a9867359bb323224e8eb7a62d2f | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Sun Jan 25 01:21:06 2009 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Sun Jan 25 01:21:06 2009 +0000 |
tree | 1afbe6ec213c28115125571e91aedf5a01dcbcf1 | |
parent | 4a480d6ebe944d528cd1453dbc6681bfbe8d3fc2 [diff] |
Fix the address of a label to be properly considered and emitted as a constant. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62948 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/const-label-addr.c b/test/CodeGen/const-label-addr.c new file mode 100644 index 0000000..1ae74e5 --- /dev/null +++ b/test/CodeGen/const-label-addr.c
@@ -0,0 +1,4 @@ +// RUN: clang %s -emit-llvm -o %t +int a() { +A:;static void* a = &&A; +}