1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s 2*67e74705SXin Li // expected-no-diagnostics 3*67e74705SXin Li 4*67e74705SXin Li struct s {}; 5*67e74705SXin Li 6*67e74705SXin Li // FIXME: should warn that declaration attribute in type position is 7*67e74705SXin Li // being applied to the declaration instead? 8*67e74705SXin Li struct s __attribute__((used)) foo; 9*67e74705SXin Li 10*67e74705SXin Li // FIXME: Should warn that type attribute in declaration position is 11*67e74705SXin Li // being applied to the type instead? 12*67e74705SXin Li struct s *bar __attribute__((address_space(1))); 13*67e74705SXin Li 14*67e74705SXin Li // Should not warn because type attribute is in type position. 15*67e74705SXin Li struct s *__attribute__((address_space(1))) baz; 16*67e74705SXin Li 17*67e74705SXin Li // Should not warn because declaration attribute is in declaration position. 18*67e74705SXin Li struct s *quux __attribute__((used)); 19