From 73e7c145e0c5d983cec3be18240851324b818d9f Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 15 May 2019 23:53:12 -0700 Subject: decl: extern storage class with initializer is still a definition --- test/extern-initializer.c | 1 + test/extern-initializer.qbe | 1 + 2 files changed, 2 insertions(+) create mode 100644 test/extern-initializer.c create mode 100644 test/extern-initializer.qbe (limited to 'test') diff --git a/test/extern-initializer.c b/test/extern-initializer.c new file mode 100644 index 0000000..a17c036 --- /dev/null +++ b/test/extern-initializer.c @@ -0,0 +1 @@ +extern int x = 1; diff --git a/test/extern-initializer.qbe b/test/extern-initializer.qbe new file mode 100644 index 0000000..9814f66 --- /dev/null +++ b/test/extern-initializer.qbe @@ -0,0 +1 @@ +export data $x = align 4 { w 1, } -- cgit v1.2.3