[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Frontend / no-knr-functions.c
blob2330e05180e909a00bda6ed510e41620dac4eb95
1 // Ensure that we cannot disable strict prototypes, no matter how hard we try.
3 // RUN: not %clang_cc1 -fno-no-knr-functions -x c++ %s 2>&1 | FileCheck --check-prefixes=NONO %s
4 // RUN: not %clang_cc1 -fno-no-knr-functions -x c %s 2>&1 | FileCheck --check-prefixes=NONO %s
5 // RUN: not %clang_cc1 -fno-no-knr-functions -std=c89 -x c %s 2>&1 | FileCheck --check-prefixes=NONO %s
6 // RUN: not %clang_cc1 -fknr-functions -x c++ %s 2>&1 | FileCheck --check-prefixes=POS %s
7 // RUN: not %clang_cc1 -fknr-functions -x c %s 2>&1 | FileCheck --check-prefixes=POS %s
8 // RUN: not %clang_cc1 -fknr-functions -std=c89 -x c %s 2>&1 | FileCheck --check-prefixes=POS %s
10 // NONO: error: unknown argument: '-fno-no-knr-functions'
11 // POS: error: unknown argument: '-fknr-functions'