[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / attr-cfi-canonical-jump-table.cpp
bloba53fbaebaf57f80f545dbc5c21332a6d6489a93a
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux -fsyntax-only -verify %s
3 __attribute__((cfi_canonical_jump_table)) void fdecl();
5 __attribute__((cfi_canonical_jump_table)) void f() {}
7 struct S {
8 __attribute__((cfi_canonical_jump_table)) void f() {}
9 };
11 __attribute__((cfi_canonical_jump_table)) int i; // expected-error {{'cfi_canonical_jump_table' attribute only applies to functions}}