brintos

brintos / llvm-project-archived public Read only

0
0
Text · 391 B · a53fbae Raw
12 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-linux -fsyntax-only -verify %s2 3__attribute__((cfi_canonical_jump_table)) void fdecl();4 5__attribute__((cfi_canonical_jump_table)) void f() {}6 7struct S {8  __attribute__((cfi_canonical_jump_table)) void f() {}9};10 11__attribute__((cfi_canonical_jump_table)) int i; // expected-error {{'cfi_canonical_jump_table' attribute only applies to functions}}12