summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/initialize-function-static.m
AgeCommit message (Collapse)Author
2022-02-16Use functions with prototypes when appropriate; NFCAaron Ballman
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).
2020-01-10Only destroy static locals if they have non-trivial destructors.Richard Smith
This fixes a regression introduced in 2b4fa5348ee157b6b1a1af44d0137ca8c7a71573 that caused us to emit shutdown-time destruction for variables with ARC ownership, using C++-specific functions that don't exist in C implementations.