forked from OSchip/llvm-project
Also recognize -std=iso9899:201x
It should already be handled but a typo in the LANGSTANDARD() definition was introduced in r147220. Patch by Alexander Richardson, test case by me. Differential Revision:https://reviews.llvm.org/D27427 llvm-svn: 288793
This commit is contained in:
parent
03435f57aa
commit
6aeb249891
|
@ -81,7 +81,7 @@ LANGSTANDARD(iso9899_2011,
|
||||||
"iso9899:2011", "ISO C 2011",
|
"iso9899:2011", "ISO C 2011",
|
||||||
LineComment | C99 | C11 | Digraphs | HexFloat)
|
LineComment | C99 | C11 | Digraphs | HexFloat)
|
||||||
LANGSTANDARD(iso9899_201x,
|
LANGSTANDARD(iso9899_201x,
|
||||||
"iso9899:2011", "ISO C 2011",
|
"iso9899:201x", "ISO C 2011",
|
||||||
LineComment | C99 | C11 | Digraphs | HexFloat)
|
LineComment | C99 | C11 | Digraphs | HexFloat)
|
||||||
|
|
||||||
LANGSTANDARD(gnu11, "gnu11",
|
LANGSTANDARD(gnu11, "gnu11",
|
||||||
|
|
|
@ -64,6 +64,9 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// RUN: %clang_cc1 -std=c11 -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix C11 %s
|
// RUN: %clang_cc1 -std=c11 -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix C11 %s
|
||||||
|
// RUN: %clang_cc1 -std=c1x -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix C11 %s
|
||||||
|
// RUN: %clang_cc1 -std=iso9899:2011 -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix C11 %s
|
||||||
|
// RUN: %clang_cc1 -std=iso9899:201x -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix C11 %s
|
||||||
//
|
//
|
||||||
// C11:#define __STDC_UTF_16__ 1
|
// C11:#define __STDC_UTF_16__ 1
|
||||||
// C11:#define __STDC_UTF_32__ 1
|
// C11:#define __STDC_UTF_32__ 1
|
||||||
|
|
Loading…
Reference in New Issue