Fixes issue #489.
authorEhsan Nasiri <ehsann@google.com>
Fri, 27 Jan 2017 16:33:33 +0000 (11:33 -0500)
committerDavid Neto <dneto@google.com>
Thu, 2 Mar 2017 15:06:29 +0000 (10:06 -0500)
commit2046e244988de4ccff004b033b72884f077d426a
tree7b0d0d99fd13b3e63ca53f2df6d96500bc236c68
parent40be4bdd34a0fce1dfcc97f571704e7980d09a36
Fixes issue #489.

From the SPIR-V Spec 2.16.1:

A function declaration (an OpFunction with no basic blocks), must have
a Linkage Attributes Decoration with the Import Linkage Type.

A function definition (an OpFunction with basic blocks) cannot be
decorated with the Import Linkage Type.
source/validate_decorations.cpp
test/val/val_cfg_test.cpp
test/val/val_decoration_test.cpp
test/val/val_id_test.cpp
test/val/val_layout_test.cpp