llvm/clang/test/Index/preamble-reparse-import.m
Aaron Ballman 7de7161304 Use functions with prototypes when appropriate; NFC
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 sixth batch of tests being updated (there are a significant
number of other tests left to be updated).
2022-02-09 17:16:10 -05:00

13 lines
532 B
Objective-C

// RUN: c-index-test -write-pch %t.h.pch -x objective-c %s-2.h
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_FAILONERROR=1 \
// RUN: c-index-test -test-load-source-reparse 3 local %s -include %t.h
// RUN: c-index-test -write-pch %t.h.pch -x objective-c %s-3.h
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_FAILONERROR=1 \
// RUN: c-index-test -test-load-source-reparse 3 local %s -include %t.h
#import "preamble-reparse-import.m-1.h"
void foo(void);
#import "preamble-reparse-import.m-2.h"
#import "preamble-reparse-import.m-1.h"