mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 08:06:07 +00:00

Now the lexer just produces a token and the parser is the one responsible for activating it. This fixes problem like the one pr11797 where the lexer and the parser were not in sync. This also let us be more strict on where in the file we accept these pragmas. llvm-svn: 149014
9 lines
248 B
C++
9 lines
248 B
C++
// RUN: %clang_cc1 %s -fvisibility hidden -emit-llvm -o - | FileCheck %s
|
|
|
|
namespace std __attribute__ ((__visibility__ ("default"))) {}
|
|
#pragma GCC visibility push(default)
|
|
void foo() {
|
|
}
|
|
#pragma GCC visibility pop
|
|
// CHECK: define void @_Z3foov()
|