summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-08-08 23:17:51 +0000
committerTim Northover <tnorthover@apple.com>2017-08-08 23:17:51 +0000
commitd1fafc8b0569b1cef000e1063657e2752f41ecb4 (patch)
treedcbd9648de59e25bccb8b201d6ed11f220501dc6 /clang/test/Lexer
parent8dd90fb54b2b0c1fd0209ecbbd78c242863e2aa8 (diff)
downloadbcm5719-llvm-d1fafc8b0569b1cef000e1063657e2752f41ecb4.tar.gz
bcm5719-llvm-d1fafc8b0569b1cef000e1063657e2752f41ecb4.zip
Revert "Lexer: always allow imaginary constants in GNU mode."
This reverts r310423. It was committed by mistake, I intended to commit the improved diagnostics for implicit conversions instead. llvm-svn: 310426
Diffstat (limited to 'clang/test/Lexer')
-rw-r--r--clang/test/Lexer/imaginary-constants.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/clang/test/Lexer/imaginary-constants.cpp b/clang/test/Lexer/imaginary-constants.cpp
deleted file mode 100644
index 3a176be54a1..00000000000
--- a/clang/test/Lexer/imaginary-constants.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s -std=gnu++98 -DHAVE_IMAGINARY=1
-// RUN: %clang_cc1 -fsyntax-only -verify %s -std=gnu++11 -DHAVE_IMAGINARY=1
-// RUN: %clang_cc1 -fsyntax-only -verify %s -std=gnu++14 -DHAVE_IMAGINARY=1
-// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++98 -DHAVE_IMAGINARY=0
-// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 -DHAVE_IMAGINARY=0
-// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++14 -DHAVE_IMAGINARY=0 -DCXX14=1
-
-// Imaginary constants are a GNU extension that became problematic when C++14
-// defined its own versions. Until then they're supported even in
-// standards-compliant mode.
-#if HAVE_IMAGINARY
-// expected-no-diagnostics
-#elif CXX14
-// expected-error@+9 {{no matching literal operator for call to 'operator""i' with argument of type 'unsigned long long' or 'const char *', and no matching literal operator template}}
-// expected-error@+9 {{no matching literal operator for call to 'operator""il' with argument of type 'unsigned long long' or 'const char *', and no matching literal operator template}}
-// expected-error@+9 {{invalid suffix 'ill' on integer constant}}
-#else
-// expected-error@+5 {{invalid suffix 'i' on integer constant}}
-// expected-error@+5 {{invalid suffix 'il' on integer constant}}
-// expected-error@+7 {{invalid suffix 'ill' on integer constant}}
-#endif
-
-_Complex int val1 = 2i;
-_Complex long val2 = 2il;
-_Complex long long val3 = 2ill;
OpenPOWER on IntegriCloud