
A significant number of our tests in C accidentally use functions without prototypes. This patch converts the function signatures to have a prototype for the situations where the test is not specific to K&R C declarations. e.g., void func(); becomes void func(void); This is the tenth batch of tests being updated (there are a significant number of other tests left to be updated).
11 lines
516 B
C
11 lines
516 B
C
// RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv32 -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s
|
|
// RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv64 -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s
|
|
|
|
void test_eh_return_data_regno(void) {
|
|
// CHECK: store volatile i32 10
|
|
// CHECK: store volatile i32 11
|
|
volatile int res;
|
|
res = __builtin_eh_return_data_regno(0);
|
|
res = __builtin_eh_return_data_regno(1);
|
|
}
|