Alexander Ivchenko | 0fb8c87 | 2018-05-18 11:56:21 +0000 | [diff] [blame] | 1 | // RUN: %clang -target i386-unknown-unknown -x c -E -dM -o - -fcf-protection=return %s | FileCheck %s --check-prefix=RETURN |
| 2 | // RUN: %clang -target i386-unknown-unknown -x c -E -dM -o - -fcf-protection=branch %s | FileCheck %s --check-prefix=BRANCH |
| 3 | // RUN: %clang -target i386-unknown-unknown -x c -E -dM -o - -fcf-protection=full %s | FileCheck %s --check-prefix=FULL |
Oren Ben Simhon | 57cc1a5 | 2018-01-09 08:53:59 +0000 | [diff] [blame] | 4 | |
Alexander Ivchenko | 0fb8c87 | 2018-05-18 11:56:21 +0000 | [diff] [blame] | 5 | // RETURN: #define __CET__ 2 |
| 6 | // BRANCH: #define __CET__ 1 |
| 7 | // FULL: #define __CET__ 3 |
Oren Ben Simhon | 57cc1a5 | 2018-01-09 08:53:59 +0000 | [diff] [blame] | 8 | void foo() {} |