• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:prefix

1 // RUN: %clangxx_cfi -o %t1 %s
2 // RUN: %expect_crash %t1 a 2>&1 | FileCheck --check-prefix=FAIL %s
3 // RUN: %expect_crash %t1 b 2>&1 | FileCheck --check-prefix=FAIL %s
4 // RUN: %expect_crash %t1 c 2>&1 | FileCheck --check-prefix=FAIL %s
5 // RUN: %t1 d 2>&1 | FileCheck --check-prefix=PASS %s
6 // RUN: %t1 e 2>&1 | FileCheck --check-prefix=PASS %s
7 // RUN: %t1 f 2>&1 | FileCheck --check-prefix=PASS %s
8 // RUN: %expect_crash %t1 g 2>&1 | FileCheck --check-prefix=FAIL %s
9 // RUN: %t1 h 2>&1 | FileCheck --check-prefix=PASS %s
11 // RUN: %clangxx_cfi -DB32 -o %t2 %s
12 // RUN: %expect_crash %t2 a 2>&1 | FileCheck --check-prefix=FAIL %s
13 // RUN: %expect_crash %t2 b 2>&1 | FileCheck --check-prefix=FAIL %s
14 // RUN: %expect_crash %t2 c 2>&1 | FileCheck --check-prefix=FAIL %s
15 // RUN: %t2 d 2>&1 | FileCheck --check-prefix=PASS %s
16 // RUN: %t2 e 2>&1 | FileCheck --check-prefix=PASS %s
17 // RUN: %t2 f 2>&1 | FileCheck --check-prefix=PASS %s
18 // RUN: %expect_crash %t2 g 2>&1 | FileCheck --check-prefix=FAIL %s
19 // RUN: %t2 h 2>&1 | FileCheck --check-prefix=PASS %s
21 // RUN: %clangxx_cfi -DB64 -o %t3 %s
22 // RUN: %expect_crash %t3 a 2>&1 | FileCheck --check-prefix=FAIL %s
23 // RUN: %expect_crash %t3 b 2>&1 | FileCheck --check-prefix=FAIL %s
24 // RUN: %expect_crash %t3 c 2>&1 | FileCheck --check-prefix=FAIL %s
25 // RUN: %t3 d 2>&1 | FileCheck --check-prefix=PASS %s
26 // RUN: %t3 e 2>&1 | FileCheck --check-prefix=PASS %s
27 // RUN: %t3 f 2>&1 | FileCheck --check-prefix=PASS %s
28 // RUN: %expect_crash %t3 g 2>&1 | FileCheck --check-prefix=FAIL %s
29 // RUN: %t3 h 2>&1 | FileCheck --check-prefix=PASS %s
31 // RUN: %clangxx_cfi -DBM -o %t4 %s
32 // RUN: %expect_crash %t4 a 2>&1 | FileCheck --check-prefix=FAIL %s
33 // RUN: %expect_crash %t4 b 2>&1 | FileCheck --check-prefix=FAIL %s
34 // RUN: %expect_crash %t4 c 2>&1 | FileCheck --check-prefix=FAIL %s
35 // RUN: %t4 d 2>&1 | FileCheck --check-prefix=PASS %s
36 // RUN: %t4 e 2>&1 | FileCheck --check-prefix=PASS %s
37 // RUN: %t4 f 2>&1 | FileCheck --check-prefix=PASS %s
38 // RUN: %expect_crash %t4 g 2>&1 | FileCheck --check-prefix=FAIL %s
39 // RUN: %t4 h 2>&1 | FileCheck --check-prefix=PASS %s
41 // RUN: %clangxx_cfi -fsanitize=cfi-cast-strict -o %t5 %s
42 // RUN: %expect_crash %t5 a 2>&1 | FileCheck --check-prefix=FAIL %s
43 // RUN: %expect_crash %t5 b 2>&1 | FileCheck --check-prefix=FAIL %s
44 // RUN: %expect_crash %t5 c 2>&1 | FileCheck --check-prefix=FAIL %s
45 // RUN: %expect_crash %t5 d 2>&1 | FileCheck --check-prefix=FAIL %s
46 // RUN: %expect_crash %t5 e 2>&1 | FileCheck --check-prefix=FAIL %s
47 // RUN: %expect_crash %t5 f 2>&1 | FileCheck --check-prefix=FAIL %s
48 // RUN: %expect_crash %t5 g 2>&1 | FileCheck --check-prefix=FAIL %s
49 // RUN: %expect_crash %t5 h 2>&1 | FileCheck --check-prefix=FAIL %s
51 // RUN: %clangxx -o %t6 %s
52 // RUN: %t6 a 2>&1 | FileCheck --check-prefix=PASS %s
53 // RUN: %t6 b 2>&1 | FileCheck --check-prefix=PASS %s
54 // RUN: %t6 c 2>&1 | FileCheck --check-prefix=PASS %s
55 // RUN: %t6 d 2>&1 | FileCheck --check-prefix=PASS %s
56 // RUN: %t6 e 2>&1 | FileCheck --check-prefix=PASS %s
57 // RUN: %t6 f 2>&1 | FileCheck --check-prefix=PASS %s
58 // RUN: %t6 g 2>&1 | FileCheck --check-prefix=PASS %s
59 // RUN: %t6 h 2>&1 | FileCheck --check-prefix=PASS %s
61 // RUN: %clangxx_cfi_diag -o %t7 %s
62 // RUN: %t7 a 2>&1 | FileCheck --check-prefix=CFI-DIAG-D %s
63 // RUN: %t7 b 2>&1 | FileCheck --check-prefix=CFI-DIAG-D %s
64 // RUN: %t7 c 2>&1 | FileCheck --check-prefix=CFI-DIAG-D %s
65 // RUN: %t7 g 2>&1 | FileCheck --check-prefix=CFI-DIAG-U %s
101 …// CFI-DIAG-D: runtime error: control flow integrity check for type 'B' failed during base-to-deri… in main()
102 // CFI-DIAG-D-NEXT: note: vtable is of type '{{(struct )?}}A' in main()
104 …// CFI-DIAG-U: runtime error: control flow integrity check for type 'B' failed during cast to unre… in main()
105 // CFI-DIAG-U-NEXT: note: vtable is of type '{{(struct )?}}A' in main()
127 static_cast<B *>(static_cast<void *>(&a)); // Non-UB bad cast in main()
130 static_cast<C *>(static_cast<void *>(&a)); // Non-UB bad cast, strict only in main()
134 // FAIL-NOT: {{^2$}} in main()