Skip to content

Commit 245b8e5

Browse files
committed
[NFC][AIX]Disable failed tests due to aggressive byval alignment warning on AIX
These tests emit unexpected diagnostics on AIX because the byval alignment warning is emitted too aggressively. https://reviews.llvm.org/D118350 is supposed to provide a proper fix to the problem, but for the time being disable the tests to unblock. Differential Revision: https://reviews.llvm.org/D118670
1 parent 22fea18 commit 245b8e5

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

clang/test/Analysis/padding_c.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
// RUN: %clang_analyze_cc1 -verify %s \
1+
// FIXME -Wno-aix-compat added temporarily while the diagnostic is being
2+
// refined.
3+
// RUN: %clang_analyze_cc1 -verify -Wno-aix-compat %s \
24
// RUN: -analyzer-checker=optin.performance \
35
// RUN: -analyzer-config optin.performance.Padding:AllowedPad=2
46

5-
// RUN: not %clang_analyze_cc1 -verify %s \
7+
// RUN: not %clang_analyze_cc1 -verify -Wno-aix-compat %s \
68
// RUN: -analyzer-checker=core \
79
// RUN: -analyzer-checker=optin.performance.Padding \
810
// RUN: -analyzer-config optin.performance.Padding:AllowedPad=-10 \

clang/test/Analysis/padding_cpp.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %clang_analyze_cc1 -std=c++14 -analyzer-checker=optin.performance -analyzer-config optin.performance.Padding:AllowedPad=2 -verify %s
1+
// FIXME -Wno-aix-compat added temporarily while the diagnostic is being
2+
// refined.
3+
// RUN: %clang_analyze_cc1 -std=c++14 -analyzer-checker=optin.performance -analyzer-config optin.performance.Padding:AllowedPad=2 -verify -Wno-aix-compat %s
24

35
// Make sure that the C cases still work fine, even when compiled as C++.
46
#include "padding_c.c"

clang/test/CXX/drs/dr6xx.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
// RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking
2-
// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking
3-
// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking
4-
// RUN: %clang_cc1 -std=c++17 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking
5-
// RUN: %clang_cc1 -std=c++20 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking
1+
// FIXME -Wno-aix-compat added temporarily while the diagnostic is being
2+
// refined.
3+
// RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking -Wno-aix-compat
4+
// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking -Wno-aix-compat
5+
// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking -Wno-aix-compat
6+
// RUN: %clang_cc1 -std=c++17 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking -Wno-aix-compat
7+
// RUN: %clang_cc1 -std=c++20 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -fno-spell-checking -Wno-aix-compat
68

79
namespace std {
810
struct type_info {};

clang/test/SemaTemplate/instantiate-attr.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// RUN: %clang_cc1 -fsyntax-only -verify %s
1+
// FIXME -Wno-aix-compat added temporarily while the diagnostic is being
2+
// refined.
3+
4+
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-aix-compat %s
25
// expected-no-diagnostics
36
template <typename T>
47
struct A {

0 commit comments

Comments
 (0)