aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ast-print-cconv-preserve.cpp
blob: 1cb488a9cd4556eee2126fab6ef9620dce518d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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))();