We were (unintentionally) only using structural equivalence to compare struct types.

Now we require that the struct name match for two struct types to be the same.
Added a test to check this.
(Also removed a stale test, movmsk-opt.ispc)
This commit is contained in:
Matt Pharr
2012-01-04 11:44:00 -08:00
parent 1a81173c93
commit 5d35349dc9
3 changed files with 16 additions and 35 deletions

View File

@@ -0,0 +1,14 @@
// Can't convert between different struct types "uniform struct Foo" and "uniform struct Bar"
struct Foo {
int a;
};
struct Bar {
int x;
};
void f(Foo a) {
Bar b;
b =a;
}