[LV] Add test showing debug output for loops with uncountable BTCs.
[llvm-project.git] / clang / test / FixIt / fixit-availability.c
blobd21799635af2ea854db1e70a2422111f1eb4da08
1 // RUN: %clang_cc1 -fsyntax-only -Wunguarded-availability -fdiagnostics-parseable-fixits -triple x86_64-apple-darwin9 %s 2>&1 | FileCheck %s
3 __attribute__((availability(macos, introduced=10.12)))
4 int function(void);
6 void use(void) {
7 function();
8 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:3-[[@LINE-1]]:3}:"if (__builtin_available(macOS 10.12, *)) {\n "
9 // CHECK-NEXT: fix-it:{{.*}}:{[[@LINE-2]]:14-[[@LINE-2]]:14}:"\n } else {\n // Fallback on earlier versions\n }"
12 __attribute__((availability(macos, introduced=10.12)))
13 struct New { };
15 struct NoFixit {
16 struct New field;
18 // CHECK-NOT: API_AVAILABLE