clangupc / clang-upc

Clang UPC Front-End
https://clangupc.github.io/
Other
16 stars 5 forks source link

SemaUPC/dup-layout-specifier.upc - multiple test failures #26

Closed gary-funck closed 10 years ago

gary-funck commented 10 years ago
commit a4a81f7694a5b69887efdcef8844cb1c9825dc5b
Author: Nenad Vukicevic <nenad@intrepid.com>
Date:   Wed Jan 29 16:16:37 2014 -0800
clang -cc1 -internal-isystem /eng/upc/dev/gar
y/clang/bld/bin/../lib/clang/3.4/include -fsyntax-only -fupc-threads 1 -verify
/eng/upc/dev/gary/clang/src/llvm/tools/clang/test/SemaUPC/dup-layout-specifier.
upc

error: 'error' diagnostics expected but not seen:
  File /eng/upc/dev/gary/clang/src/llvm/tools/clang/test/SemaUPC/dup-layout-spe
cifier.upc Line 17: cannot combine with previous 'shared' declaration specifier
[...]

Here is an example (at line 17):

shared [ ] shared [1] int ie1; // expected-error{{cannot combine with previous 'shared' declaration specifier}}

Above, "[]" implies a layout qualifier of 0, which cannot be merged with [1]. Thus the expected error seems to be correct. There are many failures to match expected output in this test.

swatanabe commented 10 years ago

On 02/10/2014 02:41 PM, gary-funck wrote:

Here is an example (at line 17):

shared [ ] shared [1] int ie1; // expected-error{{cannot combine with previous 'shared' declaration specifier}}

Above, "[]" implies a layout qualifier of 0, which cannot be merged with [1]. Thus the expected error seems to be correct. There are many failures to match expected output in this test.

The problem is that the errors are being masked by the warnings that were added recently.