llvm-project/clang/test/utils/update_cc_test_checks/Inputs/check-globals.c

11 lines
243 B
C

// First, make sure --check-globals doesn't crash on a non-FileChecked command.
// RUN: true
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
void foo() {
static int i, j;
}
void bar() {
static int i, j;
}