Skip to content

Commit be13461

Browse files
committed
Fix syntax errors in C++ regression tests
1 parent e92421d commit be13461

File tree

20 files changed

+44
-12
lines changed

20 files changed

+44
-12
lines changed

regression/cpp/Apple_extensions1/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ void * _Nonnull p2;
55
// block pointer
66
void (^p3)(void);
77
#endif
8+
9+
int main(int argc, char* argv[])
10+
{
11+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
CORE
1+
KNOWNBUG
22
main.cpp
33

44
^EXIT=0$
55
^SIGNAL=0$
66
--
77
^warning: ignoring
88
^CONVERSION ERROR$
9+
--
10+
This is being tracked in #1647.

regression/cpp/Constant2/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <cassert>
2+
13
int const C=10;
24

35
int main()

regression/cpp/List_initialization1/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int main()
2626
int y { 1 };
2727
x={ 1 };
2828
x=int { 1 };
29-
x=(int) { 1 }
29+
x=(int) { 1 };
3030
p=new int { 1 };
3131
some_function({1});
3232
}

regression/cpp/ModeC1/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
int cpp_f(int fkt_argument)
22
{
3+
return 0;
34
}
45

56
extern "C" void f(int fkt_argument)
@@ -27,4 +28,6 @@ int main()
2728
f(0);
2829
g(0);
2930
g(0L);
31+
32+
return 0;
3033
}

regression/cpp/Qualifiers_In_Template_Specialisation1/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
template <class T>
22
class c {
3+
public:
34
void fun (const T &arg);
45
};
56

@@ -9,7 +10,7 @@ void c<long int>::fun (const long int &arg) { return; }
910
int main(void) {
1011
c<long int> cl;
1112

12-
cl.fun();
13+
cl.fun(0);
1314

1415
return 0;
1516
}

regression/cpp/Resolver10/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <cassert>
2+
13
struct A
24
{
35
int i;

regression/cpp/Resolver11/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <cassert>
2+
13
struct A
24
{
35
bool func() { return false; }

regression/cpp/Template_Instantiation2/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ public :
66

77
template<>
88
int c<char>::f00(const char*);
9+
10+
int main(int argc, char* argv[])
11+
{
12+
return 0;
13+
}

regression/cpp/Template_Parameters1/main.ii renamed to regression/cpp/Template_Parameters1/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <cassert>
2+
13
// V depends on Ty
24
template<typename Ty, Ty V>
35
class T

0 commit comments

Comments
 (0)