diff options
Diffstat (limited to 'test/Sema/pragma-attribute-strict-subjects.c')
-rw-r--r-- | test/Sema/pragma-attribute-strict-subjects.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/pragma-attribute-strict-subjects.c b/test/Sema/pragma-attribute-strict-subjects.c index a84e2bde38..42e3e20e76 100644 --- a/test/Sema/pragma-attribute-strict-subjects.c +++ b/test/Sema/pragma-attribute-strict-subjects.c @@ -56,7 +56,8 @@ #pragma clang attribute pop #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(enum_constant, function, record(unless(is_union)), variable, variable(is_parameter))) -// expected-error@-1 {{attribute 'abi_tag' can't be applied to 'variable(is_parameter)', and 'enum_constant'}} +// FIXME: comma in this diagnostic is wrong. +// expected-error@-2 {{attribute 'abi_tag' can't be applied to 'enum_constant', and 'variable(is_parameter)'}} #pragma clang attribute pop #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(function, record(unless(is_union)), enum)) |