Fix VS2022 build error
VS2022 fails with "error C7631: 'info': variable with internal linkage declared but not defined" because Iguana's type info was not defined. Moved globals out of internal linkage to fix it. Change-Id: Ieb24ea04d4328971ada87bf39b7a0b1c2329e45c Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/81660 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
parent
d14b30471b
commit
2680d1f846
|
@ -20,7 +20,6 @@
|
|||
#include "gtest/gtest.h"
|
||||
|
||||
namespace tint {
|
||||
namespace {
|
||||
|
||||
struct Animal : public tint::Castable<Animal> {};
|
||||
struct Amphibian : public tint::Castable<Amphibian, Animal> {};
|
||||
|
@ -32,6 +31,8 @@ struct Lizard : public tint::Castable<Lizard, Reptile> {};
|
|||
struct Gecko : public tint::Castable<Gecko, Lizard> {};
|
||||
struct Iguana : public tint::Castable<Iguana, Lizard> {};
|
||||
|
||||
namespace {
|
||||
|
||||
TEST(CastableBase, Is) {
|
||||
std::unique_ptr<CastableBase> frog = std::make_unique<Frog>();
|
||||
std::unique_ptr<CastableBase> bear = std::make_unique<Bear>();
|
||||
|
|
Loading…
Reference in New Issue