mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 14:28:54 -04:00

As suggested in the post-commit thread for rL331056, we should match these clang options with the established vocabulary of the corresponding sanitizer option. Also, the use of 'strict' is well-known for these kinds of knobs, and we can improve the descriptive text in the docs. So this intends to match the logic of D46135 but only change the words. Matching LLVM commit to match this spelling of the attribute to follow shortly. Differential Revision: https://reviews.llvm.org/D46236 llvm-svn: 331209
19 lines
617 B
C
19 lines
617 B
C
// RUN: %clang_cc1 -S -fno-strict-float-cast-overflow %s -emit-llvm -o - | FileCheck %s --check-prefix=NOSTRICT
|
|
// NOSTRICT-LABEL: main
|
|
// NOSTRICT: attributes #0 = {{.*}}"strict-float-cast-overflow"="false"{{.*}}
|
|
|
|
// The workaround attribute is not applied by default.
|
|
|
|
// RUN: %clang_cc1 -S %s -fstrict-float-cast-overflow -emit-llvm -o - | FileCheck %s --check-prefix=STRICT
|
|
// STRICT-LABEL: main
|
|
// STRICT-NOT: strict-float-cast-overflow
|
|
|
|
// RUN: %clang_cc1 -S %s -emit-llvm -o - | FileCheck %s --check-prefix=DEFAULT
|
|
// DEFAULT-LABEL: main
|
|
// DEFAULT-NOT: strict-float-cast-overflow
|
|
|
|
int main() {
|
|
return 0;
|
|
}
|
|
|