summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/pragma-visibility.cpp
Commit message (Collapse)AuthorAgeFilesLines
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-7/+7
| | | | | | tests fail. llvm-svn: 188447
* A number of test cases assume that an "int" parameter or return valueUlrich Weigand2012-10-241-1/+1
| | | | | | | | | | | | will be represented in the IR as a plain "i32" type. This causes the tests to spuriously fail on platforms where int is not a 32-bit type, or where the ABI requires attributes like "signext" or "zeroext" to be used. This patch adds -triple or -target parameters to force those tests to use the i386-unknown-unknown target. llvm-svn: 166551
* Merge visibility from previous decls before looking at visibility pragma. ThisRafael Espindola2012-07-171-0/+20
| | | | | | | is a bit fuzzy, but matches gcc behavior and existing code bases seem to depend on it. llvm-svn: 160364
* Ignore visibility attributes after definitions. This matches newer (4.7) gcc'sRafael Espindola2012-07-121-8/+0
| | | | | | behavior and is the first step in fixing pr13338. llvm-svn: 160104
* Reject mismatched "#pragma GCC visibility push" and "#pragma GCC visibility ↵Rafael Espindola2012-02-011-8/+0
| | | | | | pop". llvm-svn: 149559
* Fix our handling of #pragma GCC visibility.Rafael Espindola2012-01-261-4/+0
| | | | | | | | | | 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
* Treat visibility on an enclosing namespace as a non-explicit source ofJohn McCall2010-12-101-1/+3
| | | | | | | | | | | visibility. Fixes PR8713. I've disabled a test which was testing that you can #pragma pop visibility to get out of a namespace's visibility attribute. We should probably just diagnose that as an error unless it's instrumental to someone's system headers. llvm-svn: 121459
* Tests for #pragma GCC visibility.Eli Friedman2010-08-051-0/+72
llvm-svn: 110316
OpenPOWER on IntegriCloud