[cfe-commits] r164556 - /cfe/trunk/test/SemaCXX/warn-c++11-extensions.cpp

Dmitri Gribenko gribozavr at gmail.com
Mon Sep 24 14:09:05 PDT 2012


Author: gribozavr
Date: Mon Sep 24 16:09:05 2012
New Revision: 164556

URL: http://llvm.org/viewvc/llvm-project?rev=164556&view=rev
Log:
More tests for r164545 (change extension warning about 'long long').

Added:
    cfe/trunk/test/SemaCXX/warn-c++11-extensions.cpp

Added: cfe/trunk/test/SemaCXX/warn-c++11-extensions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-c%2B%2B11-extensions.cpp?rev=164556&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-c++11-extensions.cpp (added)
+++ cfe/trunk/test/SemaCXX/warn-c++11-extensions.cpp Mon Sep 24 16:09:05 2012
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++98 -Wc++11-extensions -verify %s
+
+long long ll1 = // expected-warning {{'long long' is a C++11 extension}}
+         -42LL; // expected-warning {{'long long' is a C++11 extension}}
+unsigned long long ull1 = // expected-warning {{'long long' is a C++11 extension}}
+                   42ULL; // expected-warning {{'long long' is a C++11 extension}}
+





More information about the cfe-commits mailing list