| Douglas Gregor | ac06a0e | 2010-05-18 23:01:22 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |||||
| 3 | template<int N> | ||||
| 4 | struct 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 | }; | ||||