mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 01:06:06 +00:00

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 twelfth batch of tests being updated (the end may be in sight soon though).
16 lines
388 B
Objective-C
16 lines
388 B
Objective-C
// RUN: %clang_cc1 -debug-info-kind=limited -fobjc-exceptions -emit-llvm %s -o - | FileCheck %s
|
|
@interface Foo @end
|
|
void f0(void) {
|
|
@try {
|
|
@throw @"a";
|
|
} @catch(Foo *e) {
|
|
}
|
|
}
|
|
|
|
// We should have 3 lexical blocks here at the moment, including one
|
|
// for the catch block.
|
|
// CHECK: !DILexicalBlock(
|
|
// CHECK: !DILocalVariable(
|
|
// CHECK: !DILexicalBlock(
|
|
// CHECK: !DILexicalBlock(
|