llvm/clang/test/Sema/attr-alias.c

// RUN: %clang_cc1 -triple x86_64-apple-darwin  -fsyntax-only -verify %s

void g(void) {}

void f(void) __attribute__((alias("g"))); //expected-error {{aliases are not supported on darwin}}