OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [testsuite/] [odr_violation1.cc] - Blame information for rev 190

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 khays
#include <algorithm>
2
#include "odr_header1.h"
3
 
4
class Ordering {
5
 public:
6
  bool operator()(int a, int b) {
7
    return a < b;
8
  }
9
};
10
 
11
void SortAscending(int array[], int size) {
12
  std::sort(array, array + size, Ordering());
13
}
14
 
15
extern "C" int OverriddenCFunction(int i) __attribute__ ((weak));
16
extern "C" int OverriddenCFunction(int i) {
17
  return i;
18
}
19
 
20
// Instantiate the Derived vtable, without optimization.
21
OdrBase* CreateOdrDerived1() {
22
  return new OdrDerived;
23
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.