Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / munaligned-access-unused.c
blob1d86edb798ef2dc232350e30e212e5aaf6fd10a8
1 /// Check -m[no-]unaligned-access and -m[no-]strict-align are warned unused on a target that does not support them.
3 // RUN: not %clang --target=x86_64 -munaligned-access -fsyntax-only %s -### 2>&1 | FileCheck %s -DOPTION=unaligned-access
4 // RUN: not %clang --target=x86_64 -mno-unaligned-access -fsyntax-only %s -### 2>&1 | FileCheck %s -DOPTION=no-unaligned-access
5 // RUN: not %clang --target=x86_64 -mstrict-align -fsyntax-only %s -### 2>&1 | FileCheck %s -DOPTION=strict-align
6 // RUN: not %clang --target=x86_64 -mno-strict-align -fsyntax-only %s -### 2>&1 | FileCheck %s -DOPTION=no-strict-align
8 // CHECK: error: unsupported option '-m{{(no-)?}}unaligned-access' for target '{{.*}}'