Mercurial > hg > CbC > CbC_llvm
diff clang/test/Sema/attr-availability-macosx.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line diff
--- a/clang/test/Sema/attr-availability-macosx.c Wed Jul 21 10:27:27 2021 +0900 +++ b/clang/test/Sema/attr-availability-macosx.c Wed Nov 09 17:45:10 2022 +0900 @@ -12,7 +12,7 @@ void f5(int) __attribute__((availability(ios,introduced=3.2), availability(macosx,unavailable))); // expected-note{{'f5' has been explicitly marked unavailable here}} void f6(int) __attribute__((availability(macOS,strict,introduced=10.6))); //expected-note{{'f6' has been explicitly marked unavailable here}} -void test() { +void test(void) { f0(0); f1(0); f2(0); // expected-warning{{'f2' is deprecated: first deprecated in macOS 10.5}} @@ -52,7 +52,7 @@ { }; struct type_info; -int test2() { +int test2(void) { struct type_info *t; // expected-error{{'type_info' is unavailable: introduced in macOS 10.9}} return 0; }