[cfe-dev] alternate testing

David Blaikie dblaikie at gmail.com
Fri Jan 11 18:53:20 PST 2013


On Fri, Jan 11, 2013 at 6:46 PM, reed kotler <rkotler at mips.com> wrote:
> In some clang tests, they seem to use something other than filecheck
>
> for example in Sema/address_spaces.c
>
> // RUN: %clang_cc1 %s -fsyntax-only -verify
>
> #define _AS1 __attribute__((address_space(1)))
> #define _AS2 __attribute__((address_space(2)))
> #define _AS3 __attribute__((address_space(3)))
>
> void bar(_AS2 int a); // expected-error {{parameter may not be qualified
> with an address space}}
>
> void foo(_AS3 float *a,
>          _AS1 float b) // expected-error {{parameter may not be qualified
> with an address space}}
>
>
> Where is this documented?

http://clang.llvm.org/doxygen/classclang_1_1VerifyDiagnosticConsumer.html#details

(though, honestly, I've never read the documentation for it - picked
it up most by reading/examples/experience. It's fairly simple)



More information about the cfe-dev mailing list