2018-05-18 19:56:21 +08:00
|
|
|
// RUN: %clang -target i386-unknown-unknown -x c -E -dM -o - -fcf-protection=return %s | FileCheck %s --check-prefix=RETURN
|
|
|
|
// RUN: %clang -target i386-unknown-unknown -x c -E -dM -o - -fcf-protection=branch %s | FileCheck %s --check-prefix=BRANCH
|
|
|
|
// RUN: %clang -target i386-unknown-unknown -x c -E -dM -o - -fcf-protection=full %s | FileCheck %s --check-prefix=FULL
|
2018-01-09 16:53:59 +08:00
|
|
|
|
2018-05-18 19:56:21 +08:00
|
|
|
// RETURN: #define __CET__ 2
|
|
|
|
// BRANCH: #define __CET__ 1
|
|
|
|
// FULL: #define __CET__ 3
|
2018-01-09 16:53:59 +08:00
|
|
|
void foo() {}
|