Skip to content

Commit

Permalink
Update DR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MitalAshok committed Jul 4, 2024
1 parent eca9a7a commit c0ae7b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/cwg16xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ namespace cwg1696 { // cwg1696: 7
#endif
}

// cwg1698: yes
// cwg1698: 2.7
// This file intentionally does not end in a newline
// to facilitate the CWG1698 test

Expand Down
11 changes: 9 additions & 2 deletions clang/test/CXX/drs/cwg2747.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
// RUN: %clang_cc1 -std=c++11 -pedantic-errors -verify=expected %s -E | FileCheck %s --strict-whitespace --allow-empty
// RUN: %clang_cc1 -std=c++98 -pedantic-errors -verify=cxx98 %s -E | FileCheck %s --strict-whitespace
// RUN: %clang_cc1 -std=c++11 -pedantic-errors -verify=since-cxx11 %s -E | FileCheck %s --strict-whitespace
// RUN: %clang_cc1 -std=c++17 -pedantic-errors -verify=since-cxx11 %s -E | FileCheck %s --strict-whitespace
// RUN: %clang_cc1 -std=c++20 -pedantic-errors -verify=since-cxx11 %s -E | FileCheck %s --strict-whitespace
// RUN: %clang_cc1 -std=c++23 -pedantic-errors -verify=since-cxx11 %s -E | FileCheck %s --strict-whitespace
// RUN: %clang_cc1 -std=c++2c -pedantic-errors -verify=since-cxx11 %s -E | FileCheck %s --strict-whitespace

// expected-no-diagnostics
// since-cxx11-no-diagnostics
// cwg2747: yes

// Check that a newline is still added even though there is a
// physical newline at the end of the file (which is spliced)
// CHECK: int x;{{$[[:space:]]^}}int y;int z;{{$[[:space:]]^$}}
// cxx98-error@+4 {{no newline at end of file}}
// cxx98-note@+3 {{last newline deleted by splice here}}
int x;
int y;\
int z;\
2 changes: 1 addition & 1 deletion clang/www/cxx_dr_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -10003,7 +10003,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1698.html">1698</a></td>
<td>DRWP</td>
<td>Files ending in <TT>\</TT></td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 2.7</td>
</tr>
<tr class="open" id="1699">
<td><a href="https://cplusplus.github.io/CWG/issues/1699.html">1699</a></td>
Expand Down

0 comments on commit c0ae7b9

Please sign in to comment.