File: bug379342.cpp

package info (click to toggle)
clazy 1.17-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 5,248 kB
  • sloc: cpp: 23,552; python: 1,450; xml: 450; sh: 237; makefile: 46
file content (12 lines) | stat: -rw-r--r-- 208 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
struct ConstRefMember
{
    const int& m_a;
    ConstRefMember(const int& a) : m_a(a) { } // OK. Bug #379342
};


struct ConstMember
{
    const int m_a;
    ConstMember(const int& a) : m_a(a) { } // Warn
};