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