llvm-project/clang/test/Sema/attr-print.c

17 lines
483 B
C

// RUN: %clang_cc1 %s -ast-print | FileCheck %s
// FIXME: we need to fix the "BoolArgument<"IsMSDeclSpec">"
// hack in Attr.td for attribute "Aligned".
// CHECK: int x __attribute__((aligned(4, 0)));
int x __attribute__((aligned(4)));
// CHECK: int y __attribute__((align(4, 0)));
int y __attribute__((align(4)));
// CHECK: void foo() __attribute__((const));
void foo() __attribute__((const));
// CHECK: void bar() __attribute__((__const));
void bar() __attribute__((__const));