llvm-project/clang/test/OpenMP/declare_variant_ast_x86_64.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
302 B
C
Raw Normal View History

// RUN: %clang_cc1 -verify -fopenmp -triple x86_64-unknown-unknown %s -ast-dump | FileCheck %s
// expected-no-diagnostics
#pragma omp begin declare variant match(device={arch(x86_64)})
void bar() {}
// CHECK: FunctionDecl {{.*}} bar[device={arch(x86_64)}] 'void ()'
#pragma omp end declare variant