[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / munaligned-access-unused.c
blob4060b53c42fe5f478e6c9efc2b15308046baedf0
1 /// Check -m[no-]unaligned-access and -m[no-]strict-align are errored 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 -mno-strict-align -mstrict-align -fsyntax-only %s -### 2>&1 | FileCheck %s --check-prefix=ALIGN
7 // CHECK: error: unsupported option '-m{{(no-)?}}unaligned-access' for target '{{.*}}'
8 // ALIGN: error: unsupported option '-mno-strict-align' for target '{{.*}}'
9 // ALIGN: error: unsupported option '-mstrict-align' for target '{{.*}}'