Why does global variable in anonymous namespace not optimized out?

后端 未结 0 1258
南笙
南笙 2021-01-04 03:42

Here is an example:

namespace {
    int a = 0;
}

int main() {
    a = 1;
}

GCC and Clang optimized <

相关标签:
回答
  • 消灭零回复
提交回复
热议问题