File tree 20 files changed +44
-12
lines changed
Qualifiers_In_Template_Specialisation1
20 files changed +44
-12
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,7 @@ void * _Nonnull p2;
5
5
// block pointer
6
6
void (^p3)(void );
7
7
#endif
8
+
9
+ int main (int argc, char * argv[])
10
+ {
11
+ }
Original file line number Diff line number Diff line change 1
- CORE
1
+ KNOWNBUG
2
2
main.cpp
3
3
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
6
--
7
7
^warning: ignoring
8
8
^CONVERSION ERROR$
9
+ --
10
+ This is being tracked in #1647.
Original file line number Diff line number Diff line change
1
+ #include < cassert>
2
+
1
3
int const C=10 ;
2
4
3
5
int main ()
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ int main()
26
26
int y { 1 };
27
27
x={ 1 };
28
28
x=int { 1 };
29
- x=(int ) { 1 }
29
+ x=(int ) { 1 };
30
30
p=new int { 1 };
31
31
some_function ({1 });
32
32
}
Original file line number Diff line number Diff line change 1
1
int cpp_f (int fkt_argument)
2
2
{
3
+ return 0 ;
3
4
}
4
5
5
6
extern " C" void f (int fkt_argument)
@@ -27,4 +28,6 @@ int main()
27
28
f (0 );
28
29
g (0 );
29
30
g (0L );
31
+
32
+ return 0 ;
30
33
}
Original file line number Diff line number Diff line change 1
1
template <class T >
2
2
class c {
3
+ public:
3
4
void fun (const T &arg);
4
5
};
5
6
@@ -9,7 +10,7 @@ void c<long int>::fun (const long int &arg) { return; }
9
10
int main (void ) {
10
11
c<long int > cl;
11
12
12
- cl.fun ();
13
+ cl.fun (0 );
13
14
14
15
return 0 ;
15
16
}
Original file line number Diff line number Diff line change
1
+ #include < cassert>
2
+
1
3
struct A
2
4
{
3
5
int i;
Original file line number Diff line number Diff line change
1
+ #include < cassert>
2
+
1
3
struct A
2
4
{
3
5
bool func () { return false ; }
Original file line number Diff line number Diff line change 6
6
7
7
template <>
8
8
int c<char >::f00(const char *);
9
+
10
+ int main (int argc, char * argv[])
11
+ {
12
+ return 0 ;
13
+ }
Original file line number Diff line number Diff line change
1
+ #include < cassert>
2
+
1
3
// V depends on Ty
2
4
template <typename Ty, Ty V>
3
5
class T
Original file line number Diff line number Diff line change 1
1
CORE
2
- main.ii
2
+ main.cpp
3
3
4
4
^EXIT=0$
5
5
^SIGNAL=0$
Original file line number Diff line number Diff line change @@ -15,3 +15,6 @@ struct __member_pointer_traits_imp<_Rp (_Class::*)() const>
15
15
{
16
16
};
17
17
18
+ int main(int argc, char* argv[])
19
+ {
20
+ }
Original file line number Diff line number Diff line change 1
1
CORE
2
2
main.cpp
3
-
3
+ -std=c++11
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
6
--
Original file line number Diff line number Diff line change 1
1
KNOWNBUG
2
2
main.cpp
3
-
3
+ -std=c++11
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
6
--
Original file line number Diff line number Diff line change @@ -5,9 +5,12 @@ template <class T>
5
5
int size ()
6
6
{
7
7
sizeof (T);
8
+ return 0 ;
8
9
}
9
10
10
11
int main ()
11
12
{
12
13
size<int >();
14
+
15
+ return 0 ;
13
16
}
Original file line number Diff line number Diff line change @@ -55,6 +55,6 @@ class X
55
55
56
56
int main (int argc, char * argv[])
57
57
{
58
- X<> x;
58
+ X<true > x;
59
59
return x.val ()?0 :1 ;
60
60
}
Original file line number Diff line number Diff line change 1
1
KNOWNBUG
2
2
main.cpp
3
-
3
+ -std=c++11
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
6
--
Original file line number Diff line number Diff line change 1
- typedef int X;
1
+ typedef long X;
2
2
int Y;
3
3
4
4
int main ()
@@ -17,6 +17,6 @@ int main()
17
17
18
18
(X) * p; // this is a typecast
19
19
20
- z=(int )(p) & 0x1fff ; // this is bitwise and
20
+ z=(long )(p) & 0x1fff ; // this is bitwise and
21
21
// z=(int)(p) & z; // this is bitwise and
22
22
}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ int foo(int)
5
5
6
6
unsigned some_function (void )
7
7
{
8
+ return 0 ;
8
9
}
9
10
10
11
int main ()
Original file line number Diff line number Diff line change 1
- #include < stdio.h>
1
+ #include < cassert>
2
+ #include < cstdio>
3
+
2
4
class base
3
5
{
4
6
public:
@@ -26,7 +28,7 @@ int main (void)
26
28
base* D = new derived;
27
29
int a = D->func ();
28
30
delete D;
29
- __CPROVER_assert (a == 2 , " Property 1 " );
31
+ assert (a == 2 );
30
32
return a;
31
33
}
32
34
You can’t perform that action at this time.
0 commit comments