22 lines · plain
1REQUIRES: asserts2 3%% Explicit -flto to override possible -flto=thin in %clangxx_cfi4RUN: %clangxx_cfi -flto -c -o %t1.o %S/simple-fail.cpp5RUN: opt -passes=lowertypetests -debug-only=lowertypetests -o /dev/null %t1.o 2>&1 | FileCheck --check-prefix=B0 %s6B0: {{1B|B@@}}: {{.*}} size 17 8RUN: %clangxx_cfi -DB32 -flto -c -o %t2.o %S/simple-fail.cpp9RUN: opt -passes=lowertypetests -debug-only=lowertypetests -o /dev/null %t2.o 2>&1 | FileCheck --check-prefix=B32 %s10B32: {{1B|B@@}}: {{.*}} size 2{{3|4}}11B32-NOT: all-ones12 13RUN: %clangxx_cfi -DB64 -flto -c -o %t3.o %S/simple-fail.cpp14RUN: opt -passes=lowertypetests -debug-only=lowertypetests -o /dev/null %t3.o 2>&1 | FileCheck --check-prefix=B64 %s15B64: {{1B|B@@}}: {{.*}} size 5{{3|4}}16B64-NOT: all-ones17 18RUN: %clangxx_cfi -DBM -flto -c -o %t4.o %S/simple-fail.cpp19RUN: opt -passes=lowertypetests -debug-only=lowertypetests -o /dev/null %t4.o 2>&1 | FileCheck --check-prefix=BM %s20BM: {{1B|B@@}}: {{.*}} size 8{{3|4}}21BM-NOT: all-ones22