]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Sema/no_stack_protector.c
Vendor import of clang trunk r338150:
[FreeBSD/FreeBSD.git] / test / Sema / no_stack_protector.c
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 void __attribute__((no_stack_protector)) foo() {}
4 int __attribute__((no_stack_protector)) var; // expected-warning {{'no_stack_protector' attribute only applies to functions}}
5 void  __attribute__((no_stack_protector(2))) bar() {} // expected-error {{'no_stack_protector' attribute takes no arguments}}