blob: 6532f4aeeb91717d5d71584b94295c15ca608ddc [file] [log] [blame]
Stephen Hines176edba2014-12-01 14:53:08 -08001// Check the -fmax-type-align=N flag
2// rdar://16254558
3//
4// RUN: %clang -no-canonical-prefixes -target x86_64-apple-macosx10.7.0 %s -o - -### 2>&1 | \
5// RUN: FileCheck -check-prefix=TEST0 %s
6// TEST0: -fmax-type-align=16
7// RUN: %clang -no-canonical-prefixes -fmax-type-align=32 -target x86_64-apple-macosx10.7.0 %s -o - -### 2>&1 | \
8// RUN: FileCheck -check-prefix=TEST1 %s
9// TEST1: -fmax-type-align=32
10// RUN: %clang -no-canonical-prefixes -fmax-type-align=32 -fno-max-type-align -target x86_64-apple-macosx10.7.0 %s -o - -### 2>&1 | \
11// RUN: FileCheck -check-prefix=TEST2 %s
12// TEST2-NOT: -fmax-type-align
13// RUN: %clang -no-canonical-prefixes -fno-max-type-align -target x86_64-apple-macosx10.7.0 %s -o - -### 2>&1 | \
14// RUN: FileCheck -check-prefix=TEST3 %s
15// TEST3-NOT: -fmax-type-align