15 lines · cpp
1// RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-store=region %s 2>&1 \2// RUN: | FileCheck %s --check-prefixes=DEPRECATED-STORE3// DEPRECATED-STORE: error: unknown argument: '-analyzer-store=region'4 5// RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-opt-analyze-nested-blocks %s 2>&1 \6// RUN: | FileCheck %s --check-prefixes=DEPRECATED-NESTED-BLOCKS7// DEPRECATED-NESTED-BLOCKS: error: unknown argument: '-analyzer-opt-analyze-nested-blocks'8 9// RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-config consider-single-element-arrays-as-flexible-array-members=true %s 2>&1 \10// RUN: | FileCheck %s --check-prefixes=DEPRECATED-SINGLE-ELEM-FAM11// DEPRECATED-SINGLE-ELEM-FAM: error: unknown analyzer-config 'consider-single-element-arrays-as-flexible-array-members'12 13 14void empty() {}15