blob: b696c5cd98401ecdc4917e21cae407e668d876fc [file] [log] [blame]
Douglas Gregorbdb604a2010-05-18 23:01:22 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3template<int N>
4struct X {
5 struct __attribute__((__aligned__((N)))) Aligned { }; // expected-error{{'aligned' attribute requires integer constant}}
6
7 int __attribute__((__address_space__(N))) *ptr; // expected-error{{attribute requires 1 argument(s)}}
8};