diff options
| author | Joe Soroka <gits@joesoroka.com> | 2011-03-06 22:32:35 -0800 |
|---|---|---|
| committer | Joe Soroka <gits@joesoroka.com> | 2011-03-06 22:32:35 -0800 |
| commit | 38cbb40e904f3113ae117278fbbcda0f71f18c92 (patch) | |
| tree | ae2174fba7e46a4b979686d5b91c32ade657b17c /tests/tcctest.c | |
| parent | 5d55647a3cbcddb490163e61307ff4edb13f7546 (diff) | |
| download | tinycc-38cbb40e904f3113ae117278fbbcda0f71f18c92.tar.gz tinycc-38cbb40e904f3113ae117278fbbcda0f71f18c92.tar.bz2 | |
__typeof(t) should not include storage modifiers of t
Diffstat (limited to 'tests/tcctest.c')
| -rw-r--r-- | tests/tcctest.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c index 2c4d1d4..bd1b975 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -2365,6 +2365,11 @@ extern int weak_asm_v1 asm("weak_asm_v1x") __attribute extern int __attribute((weak)) weak_asm_v2 asm("weak_asm_v2x") ; extern int __attribute((weak)) weak_asm_v3(void) asm("weak_asm_v3x") __attribute((weak)); +static const size_t dummy = 0; +extern __typeof(dummy) weak_dummy1 __attribute__((weak, alias("dummy"))); +extern __typeof(dummy) __attribute__((weak, alias("dummy"))) weak_dummy2; +extern __attribute__((weak, alias("dummy"))) __typeof(dummy) weak_dummy3; + void __attribute__((weak)) weak_test(void) { printf("weak_f1=%d\n", weak_f1 ? weak_f1() : 123); |
