llvm-project/clang/test/AST/ast-print-cconv-preserve.cpp
erichkeane 380954b26f Fix test failure introduced in ab187bb
This patch, #147285 introduced a test that used
preserve_none/preserve_all/preserve_most for the purposes of validating
its ast-dump.  However, this attribute isn't supported on some
platforms, so this patch adds a triple to the test to ensure we try to
run it as a non-supported platform.

As this is simply an ast-dump test, there is no value to running it on
other configurations.
2025-07-09 06:18:49 -07:00

15 lines
403 B
C++

// RUN: %clang_cc1 -ast-print -triple x86_64-unknown-unknown %s -o - | FileCheck %s
void (__attribute__((preserve_none)) *none)();
// CHECK: __attribute__((preserve_none)) void (*none)();
__attribute__((preserve_all)) void (*all)();
// CHECK: __attribute__((preserve_all)) void ((*all))();
__attribute__((preserve_most)) void (*most)();
// CHECK: __attribute__((preserve_most)) void ((*most))();