summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2007-02-07-AddrLabel.c
blob: 25eb89433679110b81b5abd97e6e8ce253c21000 (about) (plain)
1
2
3
4
5
6
7
8
9
10
// PR947
// RUN: %clang_cc1 %s -emit-llvm -o - 

void foo() {
    void *ptr;
  label:
    ptr = &&label;

    goto *ptr;
  }