Clang Project

clang_source_code/test/CodeGen/x86-cf-protection.c
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
4
5// RETURN: #define __CET__ 2
6// BRANCH: #define __CET__ 1
7// FULL: #define __CET__ 3
8void foo() {}
9