r178143 - Add another expected note. Two errors => two notes.

Nico Weber thakis at chromium.org
Wed Mar 27 08:45:10 PDT 2013


FYI: You can also saw // expected-note 2 {{forward declaration of 'struct
S'}}


On Wed, Mar 27, 2013 at 6:50 AM, Tim Northover <Tim.Northover at arm.com>wrote:

> Author: tnorthover
> Date: Wed Mar 27 08:50:57 2013
> New Revision: 178143
>
> URL: http://llvm.org/viewvc/llvm-project?rev=178143&view=rev
> Log:
> Add another expected note. Two errors => two notes.
>
> Modified:
>     cfe/trunk/test/Sema/asm.c
>
> Modified: cfe/trunk/test/Sema/asm.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/asm.c?rev=178143&r1=178142&r2=178143&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/Sema/asm.c (original)
> +++ cfe/trunk/test/Sema/asm.c Wed Mar 27 08:50:57 2013
> @@ -125,7 +125,7 @@ void test13(void) {
>  }
>
>  // <rdar://problem/12700799>
> -struct S;  // expected-note {{forward declaration of 'struct S'}}
> +struct S;  // expected-note {{forward declaration of 'struct S'}}
> expected-note {{forward declaration of 'struct S'}}
>  void test14(struct S *s) {
>    __asm("": : "a"(*s)); // expected-error {{dereference of pointer to
> incomplete type 'struct S'}}
>    __asm("": "=a" (*s) :); // expected-error {{dereference of pointer to
> incomplete type 'struct S'}}
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130327/5c1e5f3e/attachment.html>


More information about the cfe-commits mailing list