Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / AST / ast-print-attr-knr.c
blobd7a53f958669f360aa4be6f326b7c5e7ec5e0aeb
1 // This file contain tests for attribute arguments on K&R functions.
3 // RUN: %clang_cc1 -ast-print -x c -std=c89 -fms-extensions %s -o - | FileCheck %s
5 // CHECK: int knr(i)
6 // CHECK-NEXT: int i __attribute__((unused));
7 // CHECK-NEXT: {
8 // CHECK-NEXT: return 0;
9 // CHECK-NEXT: }
10 int knr(i) int i __attribute__((unused)); { return 0; }
12 // CHECK: __attribute__((unused)) int knr2(i)
13 // CHECK-NEXT: int i;
14 // CHECK-NEXT: {
15 // CHECK-NEXT: return 0;
16 // CHECK-NEXT: }
17 __attribute__((unused)) int knr2(i) int i; { return 0; }