// Test availability attributes are enforced for Fuchsia targets.
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 "-triple" "x86_64-unknown-fuchsia" -ffuchsia-api-level=16 -fsyntax-only -verify %s
// RUN: %clang_cc1 "-triple" "x86_64-unknown-fuchsia" -fsyntax-only %s 2>&1 | FileCheck %s
// If the version is not specified, we should not get any errors since there
// is no checking (the major version number is zero).
// CHECK-NOT: error:
void ;
void ;
void ; // expected-note {{'f2' has been explicitly marked deprecated here}}
void ; // expected-note {{'f3' has been explicitly marked unavailable here}}
void ; // expected-note{{explicitly marked unavailable}}
void ; // expected-note{{'f5' has been explicitly marked unavailable here}}
void ; // expected-warning {{Fuchsia API Level prohibits specifying a minor or sub-minor version}}
void ; // expected-warning {{Fuchsia API Level prohibits specifying a minor or sub-minor version}}
void ; // nothing will happen as 'strict' is not specified.
void