blob: 653fae826a74a9e72c8af1599c8bf3c6373c60ff [file] [log] [blame]
Stephen Hines176edba2014-12-01 14:53:08 -08001// RUN: %clang_cc1 -fsyntax-only -verify %s
2// expected-no-diagnostics
3
4struct s {};
5
6// FIXME: should warn that declaration attribute in type position is
7// being applied to the declaration instead?
8struct s __attribute__((used)) foo;
9
10// FIXME: Should warn that type attribute in declaration position is
11// being applied to the type instead?
12struct s *bar __attribute__((address_space(1)));
13
14// Should not warn because type attribute is in type position.
15struct s *__attribute__((address_space(1))) baz;
16
17// Should not warn because declaration attribute is in declaration position.
18struct s *quux __attribute__((used));