summaryrefslogtreecommitdiff
path: root/test/CodeGen/string-literal.c
Commit message (Collapse)AuthorAgeFilesLines
* Update clang tests for new LLVM IR backslash printing in r374415Reid Kleckner2019-10-101-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374416 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable trigraph and escaped newline expansion on all types of raw string ↵Craig Topper2015-10-221-0/+24
| | | | | | literals not just ASCII type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251025 91177308-0d34-0410-b5e6-96231b3b80d8
* When lexing in C11 mode, accept unicode character and string literals, per C11Richard Smith2013-03-091-26/+46
| | | | | | | 6.4.4.4/1 and 6.4.5/1. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176780 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach Lexer::getSpelling about raw string literals. Specifically, if a rawRichard Smith2012-11-281-0/+7
| | | | | | | | | string literal needs cleaning (because it contains line-splicing in the encoding prefix or in the ud-suffix), do not clean the section between the double-quotes -- that's the "raw" bit! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168776 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the representation of wide strings in the AST and IR so that it uses the ↵Eli Friedman2011-11-011-15/+15
| | | | | | | | | | | | native representation of integers for the elements. This fixes a bunch of nastiness involving treating wide strings as a series of bytes. Patch by Seth Cantrell. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143417 91177308-0d34-0410-b5e6-96231b3b80d8
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-131-1/+1
| | | | | | | -std=c++0x. Patch by Ahmed Charles! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141900 91177308-0d34-0410-b5e6-96231b3b80d8
* Make constant aggregate constant initializers private linkage.Eric Christopher2011-08-241-4/+4
| | | | | | | | | After talking with John making this the case for all of these is the right way to go. Fixes rdar://9804564 and PR10414 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138418 91177308-0d34-0410-b5e6-96231b3b80d8
* Add tests for string literal concatenation.Craig Topper2011-08-111-0/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137302 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for C++0x raw string literals.Craig Topper2011-08-111-1/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137298 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit wide string literals with the appropriate alignment.John McCall2011-08-041-8/+8
| | | | | | | | Patch by Craig Topper and Sundeep! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136856 91177308-0d34-0410-b5e6-96231b3b80d8
* This patch makes the string/character literal tests run in C,Douglas Gregor2011-07-291-11/+20
| | | | | | | C++98/03, and C++0x mode, from Craig Topper! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136443 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for C++0x unicode string and character literals, from Craig Topper!Douglas Gregor2011-07-271-3/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136210 91177308-0d34-0410-b5e6-96231b3b80d8
* Add unnamed_addr to internal globals which are only used as an operand to ↵Eli Friedman2011-05-271-2/+2
| | | | | | memcpy. (Spotted by looking at IR.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132226 91177308-0d34-0410-b5e6-96231b3b80d8
* Match llvm-gcc's string literals alignment by forcing alignment on string ↵Eli Friedman2011-05-271-2/+2
| | | | | | literals to 1. This can significantly impact the size of the string data, and as far as I know, the alignment doesn't help performance. rdar://9078969 . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132223 91177308-0d34-0410-b5e6-96231b3b80d8
* Add unnamed_addr when creating artificial string globals. For example, inRafael Espindola2011-01-101-2/+2
| | | | | | | | | static const char foo[] = "foo"; static const char *bar = "bar"; the global created to hold "bar" will have it, but foo will not. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123192 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Force a triple to avoid wchar_t differences.Daniel Dunbar2010-10-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115970 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for 4-byte UCNs like \U12345678. Warn about UCNs in c90 mode.Nico Weber2010-10-061-1/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115743 91177308-0d34-0410-b5e6-96231b3b80d8
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | | Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
* fix some sema problems with wide strings and hook up basic codegen for them.Chris Lattner2009-02-261-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65582 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate some random .ll file outputsChris Lattner2009-01-271-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63117 91177308-0d34-0410-b5e6-96231b3b80d8
* Update a number of CodeGen tests to not create .ll files in the testDaniel Dunbar2008-08-211-1/+1
| | | | | | | | | directory. - Removed .ll from the svn:ignore lists to try and prevent this. - Added svn:ignore on test/Misc/Output git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55104 91177308-0d34-0410-b5e6-96231b3b80d8
* no need to verify this, no errors/warnings are expected.Chris Lattner2007-12-271-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45371 91177308-0d34-0410-b5e6-96231b3b80d8
* String literal in aggregate expressionSeo Sanghyeon2007-12-231-0/+5
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45330 91177308-0d34-0410-b5e6-96231b3b80d8