Mercurial > hg > CbC > CbC_llvm
view clang/test/Parser/access-spec-attrs.cpp @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 %s -fsyntax-only -verify struct X { public __attribute__((unavailable)): // expected-error {{access specifier can only have annotation attributes}} void foo(); private __attribute__((annotate("foobar"))): void bar(); private __attribute__((annotate())): // expected-error {{'annotate' attribute takes at least 1 argument}} }; void f(X x) { x.foo(); }