Summary: These just point to expressions that we know how to translate. Fixes #950 Reviewed By: mbouaziz Differential Revision: D8713784 fbshipit-source-id: 9eafa39master
parent
718f81ac77
commit
2c8d7a2046
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2018-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
// see also https://github.com/facebook/infer/issues/950
|
||||
|
||||
template <int T>
|
||||
struct X {
|
||||
bool isZeroBad() {
|
||||
int unused = 1;
|
||||
return T == 0;
|
||||
}
|
||||
};
|
||||
|
||||
int instanciateTemplateBad() {
|
||||
X<3> x;
|
||||
x.isZeroBad();
|
||||
int unused = 1;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in new issue